1.

Solve : Check for running process?

Answer»

I am looking for a way to check for a running PROCESS  specifically msiexec and then when it completes to run ANOTHER program...   I have a start I THINK that I got from a script to start a process if not running but I don't quite understand what its doing.... heres what I have now....  

:TOP
for /f "usebackq tokens=1" %%a in (`pslist ^| FIND /i /B "msiexec"`) Do SET ProcessRunning=%%a
If "%processrunning%" == "msiexec" Goto TOP
:End



Discussion

No Comment Found