How to check the exit code after WScript.Quit
Posted on 2006-04-06
Here's basicly what my script looks like.
WScript.Echo("You should never see this.")
That "1" is what I believe to ba an exit code.
How do I check for its value ?
I have a .vbs script(two) that is called from another .vbs(one) script.
If .vbs script (two) fails, I want to stop it with a specific exit code.
Then in the calling .vbs script(one), I want to evaluate the exit code value and display a specific message based it the value.
Any idea how I might evaluate the exit code ?