I've 2 specific scheduled tasks on my windows 2008 Server
- The first runs once a day
- The second runs every five minutes.
In the second task, that is basically a php script, I'd like to check if the first task is running and, if yes, to exit / avoid to run.
So the question is: is there a way to check from command line if a specific task is running?