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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quitting a script?

Status
Not open for further replies.

MrChopper

Programmer
Aug 11, 2004
20
US
I have an if statement I'm executing that checks to see if the machine I'm running my script on has an IP. If it dosen't, I want it to terminate the script, but if it does, I want it to go on with some other processes. What's the syntax for force quitting a script? 'end' isn't working, I get error messages looking for 'end if'.
 
WScript.Quit

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top