Home / Microsoft / Microsoft DOS / Check for running process
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Check for running process  (Read 1322 times)
rdvanorman
Guest
« 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
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Check for running process « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.112 seconds with 18 queries.