运行,我尝试从VB运行GO.BAT但是当我运行该脚本,我得到:无法找到特定文件VB脚本要.bat文件从VB
但是从CMD窗口文件go.bat存在。什么问题?
Dim MyShell
Dim shell_cmd
shell_cmd = "C:\Program Files\dir1\dir2\wizard\go.bat"
set MyShell = CreateObject("WScript.Shell")
MyShell.Run shell_cmd, 1, 1
从cmd窗口,如果
C:\Program Files\dir1\dir2\wizard>go.bat
可能重复http://stackoverflow.com/questions/1340355/launch-programs-whose-path-contains-spaces ) – 2015-03-12 08:09:35