Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cscript.exe %errorlevel% ?

Status
Not open for further replies.

aauricch

MIS
Nov 2, 2002
4
0
0
CH
When an exception error occurs in a vb script started
as follow: cscript.exe MyScript.vbs ,
(Error example: 'Variable undefined')
the variable %errorlevel% is still set by 0.
How to bring the cscript.exe to set the %errorlevel% to 1
when an ExceptionError occurs ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top