Warm tip: This article is reproduced from serverfault.com, please click

windows-调用批处理文件运行后,其余脚本未运行?

(windows - Rest of script not running after calling a batch file to run?)

发布于 2020-11-29 09:52:38

我有以下脚本batch脚本:

call standalone.bat

"C:\Program Files (x86)\Notepad++\notepad++.exe" "C:\Program Files\jboss-eap-6.2\jboss-eap-6.2\standalone\log\server.log"

第一个命令按预期运行,但脚本似乎从未调用记事本打开server.log文件。

这是什么问题?

编辑:的结尾standalone.bat是:

if ERRORLEVEL 10 goto RESTART

:END
if "x%NOPAUSE%" == "x" pause

:END_NO_PAUSE
Questioner
java12399900
Viewed
11
dbenham 2020-11-29 20:41:07

史蒂芬(Stephan)可能会在问题注释中诊断出问题-standalone.bat可能会以exit命令终止如果正确,那么你可以解决此问题而无需通过更改
call standalone.bat
为来修改standalone.bat
cmd /c standalone.bat