Tuesday, December 14, 2010

Creating a script with Notepad

  1. Start Notepad.
  2. Write your script. For example purposes, type Msgbox "Hello VB Script"
  3. Save this text file with a .vbs extension (instead of the default .txt extension). For example, Hello.vbs
  4. Navigate to the file you just saved, and double-click it.
  5. 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"