Run Windows Script Host samples
Updated: January 21, 2005
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
Open the Command Prompt.
Type the following:
cscriptsamples folder\script name
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:
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 (http://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.