To run Windows Script Host samples

1.

Command Prompt

2.

At the command prompt, type the following:

cscript samples 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

Note

To open 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 Web site before you can run them.

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

Related Topics

Run scripts using the Windows-based script host (Wscript.exe)

Set global properties for all scripts that are run with the Windows-based script host (Wscript.exe)

Set properties for individual scripts that are run with the Windows-based script host (Wscript.exe)

Run scripts using the command-line-based script host (cscript.exe)

Download Windows Script Host samples



© 2016 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies