- Start Notepad.
- Write your script. For example purposes, type
Msgbox "Hello VB Script"
- Save this text file with a .vbs extension (instead of the default .txt extension). For example,
Hello.vbs
- Navigate to the file you just saved, and double-click it.
- Windows Script Host invokes the VB Script engine and runs your script. In the example, a message box is displayed with the message "Hello VB Script"
Wednesday, December 15, 2010