Showing results for ErrorLevel - PowerShell Team

Sep 15, 2006
0
0

ErrorLevel equivalent

PowerShell Team
PowerShell Team

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     ...

FAQ$lastExitCodeErrorLevel