How to add a Xml file to windows task scheduler in C#?



Is there any direct way to read a XML file containing TaskScheduler settings in C# and add to Task Scheduler.


This seems to be a C++ equivalent method (if I am not wrong).ITaskFolder::RegisterTask method


And this is a sample XML File Daily Trigger Example (XML)


There is an alternative of running the command prompt and using schtasks command, but I don't want to do that. Any help appreciated. Thank You :)


No comments:

Post a Comment