Possible Duplicate:
How do I get the application exit code from a Windows command line?
I have a console application. It will be executed from command prompt. It will return either 0 or 1 from main method. How can I know that what value is returned by the application?