Google
WWW http://internetfixes1.brinkster.net

Visit our Quick Over View of this Remote Service.


Tip
Subject Content

222
Step into scripting with Windows Script Host

Windows Script Host (WSH) provides a framework for executing scripts written in JavaScript or

Visual Basic. WSH scripts are an extremely useful tool for administering computers and

performing repetitive tasks. They can perform some fairly complex tasks, including display

messages on screen, map network drives, connect printers, modify registry keys, read and modify

environment variables, and retrieve information on hardware via Windows Management Interface

(WMI).



If you're familiar with JavaScript or Visual Basic, creating and using WSH scripts isn't that

difficult.



Follow these steps to try this example:



Open Notepad and enter: WScript.Echo("My first WSH script!")

Name the file Myscript.vbs, and save it.

Browse to the folder where the file resides, and double-click the file. Windows will display a

message box with the text specified in the script.



While this basic example may not be very useful, it illustrates how easy it can be to create a script.

The Microsoft Developer Network Web site offers an extensive explanation of WSH, tutorials on

writing scripts, and related topics.

Page 223 of 237
First Previous Next Last