To set properties for individual scripts that are run with the Windows-based script host

1.

Windows Explorer Browse to the folder with the script whose properties you want to set, and right-click it.

2.

Select Properties, and then click the Script tab.

3.

Select the Stop script after specified number of seconds check box.

4.

In the seconds box, enter the time limit you want to place on this script.

Note

To open Windows Explorer, click Start, point to All Programs, point to Accessories, and then click Windows Explorer

These settings override global settings.

After clicking OK, a command file is created that binds the property settings to the script. It has the file name extension .wsh. You can use this command file as an alternate script file to run the script.

Related Topics

Download Windows Script Host samples

Windows Script Host object model

Windows Script Host overview

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

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

Run Windows Script Host samples

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)

For more information, see the Windows Script Technologies Web site at the Microsoft Web site.



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