Alma
Rookie

How to run a VBScript program with windows explorer?


I am learning about scripting languages and found this vbscript a good scripting language that can be used from the command line. It is a good programming language for Intranet web sites. As I am new to this so I want to know about how to run a VBScript program through windows explorer?
6 months ago
Respond to this discussion
Elmore Pugh | Dec 6 2011

Type the name for the program, such as the MyScript in the file Name option text box. Append the .vbs to the end of the name. For instance, if you can choose MyScript as the file name, type the MyScript.vbs without even the quotes in the file name text box and then click on the save. This will save the file as a total VBScript file. Open the Windows Explorer and then locate your file. Double click on that file. It runs at a new instance of Notepad. The VBScript program pauses after some Notepad opens because you are passed 1 to the Run command. If you are passed 0 instead then the VBScript would not be pause. Close the Notepad. The program will get resumes execution and then displays the message box that always says, End of Program.

© 2012, Instamedia. Some rights reserved. Powered by Instapress and Instacheckin.