How Do You Execute Visual Basic Script Programs?
Visual Basic Scripting (VBScript) files allow administrators to execute plain text files on a local computer. This helps the administrator automate functions on several computers at once. The administrator copies the file to the machine and executes it. The VBScript code contained in the file is executed by the Windows script shell utility and the settings are applied to the computer. The files are executed from your Windows command line utility. Click the Windows “Start” button and enter “cmd” into the text box. Press “Enter” to open the command line. Enter “wscript //H:cscript” into the command line to use the “cscript” application utility as the default host shell software. Enter the following command into the prompt: cscript.exe yourscript.vbs Replace “yourscript” with the name of your own vbs file. View the results of the execution. The Windows command prompt returns a “Success” message after the file finishes executing on the machine.