Re: Stand alone Executable return argument
From: Bob Grommes (bob_at_bobgrommes.com)
Date: 10/28/04
- Next message: Sunny: "Re: Stand alone Executable return argument"
- Previous message: Yan Vinogradov: "Re: Question on converting char* into System.String"
- In reply to: Sunny: "Stand alone Executable return argument"
- Next in thread: Stoitcho Goutsev \(100\) [C# MVP]: "Re: Stand alone Executable return argument"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 28 Oct 2004 06:29:31 -0700
Just change public static void main to public static int main, and return
whever error code you want to return to the process. Then any other process
running your EXE can check the return code.
--Bob
"Sunny" <Sunny@discussions.microsoft.com> wrote in message
news:61F243CF-E0DD-4DE5-BAB3-E8DC70D3A03F@microsoft.com...
> Hi,
> I have a very serious issue at hand. I have created a small C# Console App
> (Csd.exe) that collects a list of files as its argument and generates
> their
> Md5 sets.
> This application is used by other applications in my dept, which simply
> call
> this Csd.exe app and passing a list of files.
> I want to ask how can I return a value from this Csd.exe application as an
> indicator or a signal to the calling app that Csd.exe has finished
> working.
> The problem is that the main component of my Csd.exe is a
>
> public static void main(string[] args)
> {
> //All the work
> //And that is it (done)!
> //Here i want to enter a return int or a bool (true) so that the caller
> can know
> //that i am finished processing....
> }
>
> The Static void main does not let me return anything. How can i do that.
>
> Please HELP!
>
> Thanks and Regards
> Sunny
>
- Next message: Sunny: "Re: Stand alone Executable return argument"
- Previous message: Yan Vinogradov: "Re: Question on converting char* into System.String"
- In reply to: Sunny: "Stand alone Executable return argument"
- Next in thread: Stoitcho Goutsev \(100\) [C# MVP]: "Re: Stand alone Executable return argument"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|