ExitStatus Property
Contains the last commands exit status.
Syntax
public val exitStatus: Int
Default Value
0
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.