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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top