Compartir a través de


Run Windows Script Host samples

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To run Windows Script Host samples

  1. Open the Command Prompt.

  2. Type the following:

    cscriptsamples folder**\**script name

    Where:

    samples folder is the path to the folder into which you downloaded the samples.

    script name is the name of the sample script you want to run, including the file name extension (for example, .js or .vbs).

    For example, if you saved the samples to C:\Samples, and you wanted to run the Network.vbs sample, you would type:

    cscript c:\sample\network.vbs

Notes

  • Performing this task does not require you to have administrative credentials. Therefore, as a security best practice, consider performing this task as a user without administrative credentials.

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.

  • You must download the Windows Script Host sample files from the Microsoft Windows Script Technologies home page at the Microsoft Web site (https://www.microsoft.com/) before you can run them.

  • You can also double-click the sample script file to run a script using the Wscript.exe script host.

See Also

Concepts

Windows Script Host overview
Run Windows Script Host