Installing Windows Script HostTo install the Windows Script Host, please see the following Microsoft Web site:
NOTE: Windows Script Host is included in Microsoft Internet Explorer 5.
Running ScriptsTo run scripts from within Windows, you can use one of the following methods:
- Double-click a .vbs or .js file.
- Click Start, click Run, and then type the name of a .vbs or .js file in the Open box.
Internet Explorer 5:
Note that Web sites can also create links to .vbs or .js files on a Web page. When you click such a link in Internet Explorer, a File Downloaddialog box appears prompting you (by default) to either open the file from its current location or save the file to disk. If you click Open, the file is downloaded and run from your local file system bypassing Internet Explorer's security settings.
IMPORTANT: If you click Open in the File Download dialog box and click the
Always ask before opening this type of file check box to clear it, Internet Explorer no longer prompts you with a File Download dialog box. To cause Internet Explorer to prompt you with a File Download dialog box again, follow these steps:
- In My Computer, click Folder Options on the View menu.
- On the File Types tab, select the appropriate registered file type (.vbs or .js).
- Click Edit, and then click the Confirm open after download check box to select it.
- Click OK, and then click OK again.
Minimum Requirements for WSHThe minimum requirement for WSH to function is Internet Explorer version 3.0 or later. WSH relies on the Visual Basic Script and Java Script engines provided in Internet Explorer.
Troubleshooting WSHSeveral sample scripts are installed in the Windows\Samples\WSH folder. If these scripts run correctly, but others do not, contact the author of the script for support. Support and additional information is also available on the following Microsoft Web site:
ID do Artigo: 188135 - Última Revisão: 19/08/2009 - Revisão: 1