Chapter 40: Automating Tasks with the Windows Script Host
Configuring the Wscript Program To see or set properties for Wscript, run Wscript with no script by running its filename (Wscript.exe) in the C:\Windows\System32 folder. You can also choose Start | Run, type wscript in the Run dialog box, and then click OK. Either way, you see the Windows Script Host Settings dialog box, shown here:
Wscript has two properties that you can set:
- Stop Script After Specified Number of Seconds Specifies a maximum number of seconds that a script can run, to prevent running scripts that never terminate. This setting is the equivalent of Cscript's //T:nn option or the WSH file Timeout setting, which are described in the next two sections.
- Display Logo When Script Executed In Command Console Displays the version number for WSH each time Wscript runs a script. This setting is the equivalent of Cscript's //logo or //nologo option or the WSH file DisplayLogo setting.