I have a console program to run a daily batch. I have a UI that I can use to alter parameters in a db that the console program uses.
I thought it would be great to be able to stop and start this program from the UI and I can do that.
However, I have the console program set to start before the work day using Task Scheduler in case the machine should be rebooted - at least I know the program will be running when the day starts.
However, I cannot kill it when it has been started by Task Scheduler. Get "Access is denied".
Why? And how can I solve this?