Is it possible to somehow interact with the Windows task scheduler through C#?
What I want to do, is our server needs an reboot sometimes but I don’t want to just “hard reboot” it.
Therefore it would be great if it were possible somehow to get the current status of our application in the task scheduler, to see if it’s running.
If it’s currently running, then my reboot application should wait X number of minutes checking again.
But first of all, could I get the status from my task?
Don’t bother interacting with the task scheduler. Just open up remoting (or wcf) to the application and check if it is running that way. The task scheduler is only one of many possible ways it could start up, so that is really an unreliable way of checking to see if teh application is actually running. You want to know if your application is running, not if the task scheduler started it.
Talking about communication between applications (WCF)