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?