Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Check for running process  (Read 5057 times)

0 Members and 1 Guest are viewing this topic.

rdvanorman

  • Guest
Check for running process
« on: November 04, 2004, 03:53:41 PM »
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