My custom task scheduler is working fine in Windows XP, but it throws an Access Denied error in Windows 7.
The reason is that Windows 7 is not storing the tasks under C:\Windows\Tasks
. It stores it under C:\Windows\System32\Tasks
. But my task scheduler tries to store the tasks under C:\Windows\Tasks
that leads to an error.
I am using ITaskSchedular
and the ITask COM interface; I want to change the RootFolder of ITaskSchedular
, but I couldn't.
I don't have admin rights; that's why it throws this error. An administrator would be able to run my scheduler properly.