Friday, August 15, 2008

PowerShell Team Blog : ErrorLevel equivalent

 

PSMDTAG:FAQ: ErrorLevel - what is the PowerShell equivalent?

In Cmd.exe, %ErrorLevel% is a builtin variable which indicates the success or failure of the last executable run.

In PowerShell, we support:

    $?
       Contains True if last operation succeeded and False otherwise.
And

    $LASTEXITCODE
       Contains the exit code of the last Win32 executable execution.

PowerShell Team Blog : ErrorLevel equivalent

1 comment:

Unknown said...

most likely, you have also heard about the way of access database repair program 6

Blog Archive