Method:  WScript.Quit

WScript.Quit [lngExitCode]

The Quit method causes the current script to terminate and return the specified exit code.

The use of the Quit method is demonstrated in the following JScript code.

Code:
WScript.Echo("Hello", "world")
WScript.Quit(1)
WScript.Echo("You should never see this.")


Output:
Hello world

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information