How do I Continue a batch file only if a process IS running
- by Shane McD
I have successfully managed to hold a batch file until a process ends. But how do I hold a batch file until a process starts?
I am working using the following code:
@echo off
set process_1="calc.exe"
set process_2="mmc.exe"
set ignore_result=INFO:
set no_ignore=mmc.exe
:1
for /f "usebackq" %%M in (`tasklist /nh /fi "imagename eq %process_1%"`)…