|
Re: How to get Errors in an external file # append error messages to a file
New-Item d:\ -Name $Eingabe -type directory 2>> $errFile
# PowerShell has an automatic variable that contains last
# executed legacy apps' exit code:
cmd /c exit 99
$lastExitCode
# for more on Redirection operators:
help about_operator
# for more on Automatic variables:
help about_Automatic_variables
--
Kiron |