WSH » WScript » Quit

Syntax:
WScript.Quit ([lngExitCode])
lngExitCode
Receives the code to be returned by the program upon exit.

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

Examples

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

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

Language(s): JavaScript