Batch file 尝试从vbs执行bat时出现错误800A0401
我正试图在命令行中执行此脚本。我要走了 错误800A0401应为语句结尾。资料来源:Microsoft VBScript 编译错误 ==> 下次发布错误行号 ==> 下次发布错误行号Batch file 尝试从vbs执行bat时出现错误800A0401,batch-file,command-line,vbscript,Batch File,Command Line,Vbscript,我正试图在命令行中执行此脚本。我要走了 错误800A0401应为语句结尾。资料来源:Microsoft VBScript 编译错误 ==> 下次发布错误行号 ==> 下次发布错误行号 Set WshShell = WScript.CreateObject( "WScript.Shell" ) Dim strCurDir strCurDir = WshShell.CurrentDirectory WshShell.Run strCurDir & "\Advertise.bat", 0
Set WshShell = WScript.CreateObject( "WScript.Shell" )
Dim strCurDir
strCurDir = WshShell.CurrentDirectory
WshShell.Run strCurDir & "\Advertise.bat", 0, True
Wscript.Sleep(2)
WshShell.Run strCurDir & "\Uninstall.bat", 0, True
Wscript.Sleep(2)
WshShell.Run strCurDir "\Install.bat", 0, True
Set WshShell = Nothing
Wscript.quit
WshShell.Run strCurDir "\Install.bat", 0, True
WshShell.Run strCurDir & "\Install.bat", 0, True