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

Re: Windows .exe exit code by Jon

Jon
Thu Jul 15 04:18:10 CDT 2004

liam <anonymous@discussions.microsoft.com> wrote:
> 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.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Re: Windows .exe exit code by anonymous

anonymous
Thu Jul 15 04:45:05 CDT 2004

thanks Jon.

>-----Original Message-----
>liam <anonymous@discussions.microsoft.com> wrote:
>> 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.
>
>--
>Jon Skeet - <skeet@pobox.com>
>http://www.pobox.com/~skeet
>If replying to the group, please do not mail me too
>.
>

Re: Windows .exe exit code by hirf-spam-me-here

hirf-spam-me-here
Thu Jul 15 06:01:06 CDT 2004

* "liam" <anonymous@discussions.microsoft.com> scripsit:
> 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'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>