Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 尝试从vbs执行bat时出现错误800A0401_Batch File_Command Line_Vbscript - Fatal编程技术网

Batch file 尝试从vbs执行bat时出现错误800A0401

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

我正试图在命令行中执行此脚本。我要走了

错误800A0401应为语句结尾。资料来源:Microsoft VBScript 编译错误

==>

下次发布错误行号

==>

下次发布错误行号

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