How to: Run Scripts

To run your scripts, use the CScript Windows Script Host, which is included with the operating system.

To set CScript script host as the default

  1. At the command prompt, type cscript //h:cscript.

To run a script without a debugger

  1. After you set CScript script host as the default at the command prompt, type the script name, and then press ENTER.

Even if you set the CScript script host as the default, you must still type cscript with the //d option to run a script with a debugger.

To run a script with a debugger

  1. At the command prompt, type cscript //d followed by the name of the script, and then press ENTER.

For more information about the Windows Script Host, see the following topics in the SDK documentation in the MSDN Library:

For the latest information about scripting, see Windows Script.

See Also

Concepts

Creating Scripts
Script Examples
How to: Enable Security in Scripts