Environment.ExitCode
Property Value
A 32-bit signed integer containing the exit code. The default value is zero.
Remarks
This property can be used to return a success code from an application. For
example, it can be used to control the execution of a set of applications
invoked in a script. If the value of this property is not set by an
application, zero is returned.
"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
how to return code from my app?
like in ol' dos progs
i need to call my app from a batch file and do some things based on the
return code
tnx