Microsoft® Windows® 2000 Scripting Guide Although this might be the age of the graphical user interface, many system administrators are still more comfortable working from the command prompt than within the GUI. Citizen Aqualand Ii Jp1010 00e Manual High School. This is not a problem with WSH; you can run scripts from the command prompt or from the GUI. Link Download Plants Vs Zombies 2 Full Cho Pc Games. Not only do you not lose any capabilities by choosing the command prompt over the GUI, but running scripts from the command line and under CScript also has at least two benefits: • It is easier to pass arguments to the script. These arguments might be used by the script itself (for example, you might pass the name of a folder to be deleted), or the script host might use them when running the script.
• It is easier to cancel a script running under CScript. When a script runs from the command prompt, you can cancel the script either by pressing CTRL+C or by closing the command window in which it is running. If a script is running under WScript, the only way to cancel it is to terminate the Wscript.exe process.
You can run script files from the command line in one of two ways: • Type the name of the script, including its file name extension, at the command prompt: HardwareAudit.vbs • Type the name of one of the script hosts followed by the name of the script: cscript HardwareAudit.vbs wscript HardwareAudit.vbs When you use the first method, the command interpreter must determine which script host to call. If you do not specify either CScript or WScript, the script will run under the default script host as configured on the computer. When you use the second method, you explicitly specify the script host under which the script should be run. The command interpreter runs cscript.exe or wscript.exe, whichever was specified, passing it the script file HardwareAudit.vbs. Script Host Options Both CScript and WScript accept a number of options that either affect how the script host will run a script or modify some aspect of the WSH environment. The two script hosts share a common set of options; CScript also has a few options, most notably //logo and //nologo, which have no effect in WScript.