I need to run this command
LEProc.exe -runas ba954abf-2cf7-4efc-90c3-4b6d90aed470 "%~dp0Release\noppack.exe" data script
Next line in batch should be processed after this is finished. Now, there's many ways, bt I'd prefer something as easy as START /WAIT
, but no matter how hard I try, running this with START
results in
The system cannot find the file specified.
After demon.devin's answer this is the solution:
: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
[...]