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?