Running Scripts

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

ms698507.wedge(en-us,VS.85).gifTo set CScript script host as the default

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

ms698507.wedge(en-us,VS.85).gifTo run a script without a debugger

  • After setting CScript script host as the default at the command prompt, type the script name and then press ENTER.

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

ms698507.wedge(en-us,VS.85).gifTo run a script with a debugger

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

For more information on the Windows Script Host, see the following topics in the SDK documentation on the MSDN Library Web site at Http://msdn.Microsoft.Com/Library:

For the latest information about scripting, see Windows Script.

Send comments about this topic to Microsoft

Build date: 2/16/2009