How does Windows Task Scheduler detect that a task is already running?

Posted by Dan C on Server Fault See other posts from Server Fault or by Dan C
Published on 2013-11-12T01:15:37Z Indexed on 2013/11/12 3:58 UTC
Read the original article Hit count: 364

Filed under:

I have an application on Windows Server 2008 that takes different command-line parameters. For example:

myapp.exe /A

myapp.exe /B

I have created a task scheduler task for each of those.

While "myapp.exe /A" is running, I want to prevent another instance of it from starting. However, I still want "myapp.exe /B" to be able to run (again, though only one instance of it at a time).

How can I set this up?

© Server Fault or respective owner

Related posts about scheduled-task