Windows .exe exit code

  • Thread starter Thread starter liam
  • Start date Start date
L

liam

Hi,

I have a .Net .exe that a third party is going to use. I
have been asked to provide an exit code from the .net .exe
that specifes success/failure. The .net exe is going to
be called from a VB6 .exe. Does anyone have any idea how
to do this?

liam
 
liam said:
I have a .Net .exe that a third party is going to use. I
have been asked to provide an exit code from the .net .exe
that specifes success/failure. The .net exe is going to
be called from a VB6 .exe. Does anyone have any idea how
to do this?

Use the Environment.ExitCode property.
 
* "liam said:
I have a .Net .exe that a third party is going to use. I
have been asked to provide an exit code from the .net .exe
that specifes success/failure. The .net exe is going to
be called from a VB6 .exe. Does anyone have any idea how
to do this?

'Environment.ExitCode = <value>', 'Environment.Exit(<exit code>)', or a
'Function Main' that has a return value of type 'Integer'.
 
Back
Top