如何编写VBS运行指定文件夹下的bat文件

2024-12-01 23:18:20
推荐回答(4个)
回答1:

CreateObject("WScirpt.Shell").Run """E:\bin\jsq.bat"""
'三对双引号

回答2:

path="E:\bin\jsp.bat"
CreateObject("WScirpt.Shell").Run chr(34) & path & chr(34),0

回答3:

set ws=createobject("wscript.shell")
ws.run """E:\bin\jsp.bat"""
试一下这个。

回答4:

Dim wsh
path = "E:\bin\jsq.bat"
Set wsh = CreateObject("wscript.shell")
wsh.Run (path)
Set wsh = nothing