I am still pretty much new to c# so you will have to bear with me.
I have developed a windows form program which updates some SQL records as an end of day process fo
Add reference: Microsoft.Win32.TaskScheduler then write this code:
Microsoft.Win32.TaskScheduler
using (TaskService ts = new TaskService()) Microsoft.Win32.TaskScheduler.Task task = ts.GetTask(TaskName); task.Run(); //start task.Stop(); //End