ExitStatus Property
Contains the last commands exit status.
Syntax
public int getExitStatus();
Remarks
Check this property to obtain the exit status (also sometimes referred to as errorlevel) of the last command or shell session.
This property is read-only and not available at design time.
Default Value
0