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:

  • Windows Script Host

  • Running Your Scripts

  • Basic Windows Script Host Tasks

For the latest information about scripting, see Windows Script.

See Also