Hi,
I want to get the exit code from a batch file that i have executed.
I don't know how to do this? Please I need your help regarding the same!
Hi,
I want to get the exit code from a batch file that i have executed.
I don't know how to do this? Please I need your help regarding the same!
How to close batch files
Even our favourite batch files will, at some time, need to quit.
Sometimes they need to quit based on a condition that has been or has not been met. And every batch file needs to quit, and will do so, when it reaches the last line of code.
There are several ways to end batch file execution, like reaching the end of the batch file, starting execution of another batch file, or using the EXIT or GOTO:EOF commands.
Each operating system may react in its own way to any of these events.
And often there is a difference between ending batch file execution and closing the batch file's console (window).
The java program
when executed, Runtime.exec() always returns me exit code of 0 where as it should return 44. The same works on windows 2003 which is strange. I havent found a way to get around this problem.
Any help on this is appreciated.
Please refer to this webpage I hope this helps you!
http://blog.borngeek.com/2008/05/22/...le-exit-codes/
Bookmarks