View Full Version : how to test for a running program
icarusjj
01-02-2002, 10:06 PM
How, in a vbs script, can I check to see if a program (not service!) is not running, and if so, execute a command? Seems like it should be easy, but I haven't found the answer yet.
darkness
01-07-2002, 02:27 PM
You can use a couple utils in the Win2k Resource kill to 1 Detect running applications simlar to PS and also PSkill I believe is the equivalent to "kill" in unix. You could run the Application, collect the output and search for the string and then kill the process by its PID or Process ID.
Hope this Helps
Michael McLaughlin/images/forums/icons/smile.gif
Systems Manager
Minnesota State University Mankato
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.