Listing 4: JScript Code That Aborts a Script When It's Not Running Under CScript.exe if (ScriptHost() != "cscript.exe") { WScript.Echo("You must run this script with the CScript host."); WScript.Quit(1); }