Accidental Hyper-V Administrator
asked on
error level checking in a vbscript
Hello all,
I have a .vbs script that launches a DOS application which, the writer of the application tells me, sets errorlevel to 0 if it runs sucessfully and a 1 in not run sucessfully.
My goal is to find a snippet of vbscript which checks for the value of errorlevel and then does something based on the value.
I am launching the dos based applicaion from my .vbs script using the following lines .....
Set WshShell = CreateObject("WScript.Shel l")
WshShell.Run <the location and name of the dos executable goes here>, 1, True
I'm pretty new to vbscript so, "simple is greatly appreciated".
Thanks in advance.
I have a .vbs script that launches a DOS application which, the writer of the application tells me, sets errorlevel to 0 if it runs sucessfully and a 1 in not run sucessfully.
My goal is to find a snippet of vbscript which checks for the value of errorlevel and then does something based on the value.
I am launching the dos based applicaion from my .vbs script using the following lines .....
Set WshShell = CreateObject("WScript.Shel
WshShell.Run <the location and name of the dos executable goes here>, 1, True
I'm pretty new to vbscript so, "simple is greatly appreciated".
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a million. (Or at least 500)
:)