locked
VBScript File Execution

    Question

  • I would like to know how to save some VBScript code to a file, and then execute the file.

    Friday, March 21, 2008 12:41 PM

Answers

  • For a file named "test.vbs" type the following at the command prompt:

         

            cscript test.vbs

    Friday, March 21, 2008 4:48 PM

All replies

  • Hi,

     

    Save the code to a .vbs file, just a text file with its txt extension changed to vbs, and double click it.

    Friday, March 21, 2008 1:04 PM
  • I want to execute the file from the command line.

    Friday, March 21, 2008 2:05 PM
  •  

    This is not a vbs forum. Such questions are not addressed here.
    Friday, March 21, 2008 2:29 PM
  • For a file named "test.vbs" type the following at the command prompt:

         

            cscript test.vbs

    Friday, March 21, 2008 4:48 PM