1

I want to make the Task Scheduler programmatically. Is there a way to include the exported task from Task Scheduler into C# code to automate task creation?

Nemanja Andric
  • 625
  • 11
  • 30
  • Such questions are already there in stack overflow. Please check https://stackoverflow.com/questions/7394806/creating-scheduled-tasks – ManishM Sep 14 '18 at 07:46
  • Possible duplicate of [Creating Scheduled Tasks](https://stackoverflow.com/questions/7394806/creating-scheduled-tasks) – Liam Sep 14 '18 at 07:58
  • Hi @ManishM if you fee la question is a duplicate please flag it as such. See [How should duplicate questions be handled?](https://meta.stackexchange.com/questions/10841/how-should-duplicate-questions-be-handled) – Liam Sep 14 '18 at 07:59

1 Answers1

3

Use TaskScheduler 2.8.4 NuGet Package, like this :

TaskService.Instance.RootFolder.ImportTask("IDM", @"D:\Update.xml");
Mojtaba Tajik
  • 1,725
  • 16
  • 34