How to run VBScript from command line without Cscript/Wscript

后端 未结 5 616
慢半拍i
慢半拍i 2020-12-17 10:45

I am a beginner in VBScript. I googled it & got to know that we can run VBScript from command line by executing below command:

For Example my vbscript name is

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-17 11:04

    I am wondering why you cannot put this in a batch file. Example:

    cd D:\VBS\
    WSCript Converter.vbs
    

    Put the above code in a text file and save the text file with .bat extension. Now you have to simply run this .bat file.

提交回复
热议问题