我需要这个完成后才能运行此命令在批处理批处理文件等待程序复杂的命令行完成
LEProc.exe -runas ba954abf-2cf7-4efc-90c3-4b6d90aed470 "%~dp0Release\noppack.exe" data script
下一行应该进行处理。现在,有很多方面,BT我在 The system cannot find the file specified.
喜欢的东西一样容易START /WAIT
,但无论我怎么努力,运行这个与START
结果demon.devin的回答后,这是解决方案:
:CHECK_RUNNING
set errorlevel=
tasklist /fi "imagename eq noppack.exe" | find /i "noppack.exe"> NUL
if /i %errorlevel% GTR 0 goto CONTINUE
ping -n 1 -w 5000 1.1.1.1 > nul
goto CHECK_RUNNING
:CONTINUE
[...]
不一无所知'LEProc.exe',但'runas'将产生一个新的CMD会话起始于'%SYSTEMROOT%\ System32'。所以我最初的猜测不是依靠'%〜dp0'。完全限定exe和数据文件的所有路径。 – elzooilogico
'LEProc'只是区域模拟器,需要在韩文区域运行'noppak.exe'。这不是拖延... –
我完全坚持晋级路径'开始 “”/等待CMD/C^“” C:\ some_folder \ LEProc.exe “-runas ba954abf -...- 4b6d90aed470” C:\您的文件夹\ another_folder \ noppack.exe” “C:\您的文件夹\什么\数据脚本”^“' – elzooilogico