How to run a file using VisualBasicScript (.vbs)

后端 未结 6 1554
你的背包
你的背包 2020-12-10 06:57

How can I run a file with VisualBasicScript (.vbs)?

The file is \'file.bat\' and it\'s located in the same dir as the .vbs.

6条回答
  •  一向
    一向 (楼主)
    2020-12-10 07:20

    Jamb Code:

    jamb(run) "%PWD%\File.bat" & display box(small) with $OUTPUT
    

    VBS Code:

    set runFile (".\file.bat")
    mode console
    msgbox (runFile)
    

提交回复
热议问题