Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Check if a process is running on Windows

by paulbort (Hermit)
on Jun 14, 2004 at 18:51 UTC ( #366662=note: print w/replies, xml ) Need Help??

in reply to Check if a process is running on Windows

While there are several valid methods above, they are all making this way too hard.

This is one of the things that Windows gets right. Assuming you are on Windows 2000, Windows XP, or Windows 2003, you can solve this in less than a minute with zero code!

First, disable whatever method is currently launching the main script.

Next, set that same script up again to be launched by the built-in Windows Task Scheduler. Tell Task Scheduler that you want your script run every five minutes, UNLESS it is already running from last time. Voila!

Hope you get this before spending too much time with another solution...

Spring: Forces, Coiled Again!
  • Comment on Re: Check if a process is running on Windows

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://366662]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2022-08-08 03:45 GMT
Find Nodes?
    Voting Booth?

    No recent polls found