How to create new Scheduled Task Programmatically?

  • Thread starter Thread starter Malte Ahrens
  • Start date Start date
M

Malte Ahrens

Guest
I am interested in creating a new scheduled task for Vista / Windows 7 and I am intersted in doing in programmatically for my program. For windows XP I used:


System.Diagnostics.Process.Start("schtasks", @"/create /tn TestTast /tr C:\test.exe /sc daily /st 18:55:00");


How would I go about doing this for Vista / Windows 7 programmatically, if I also wanted to 'select' the "Run task as soon as possible after a scheduled start is missed" option?

Thank you

M.Ahrens

Continue reading...
 
Back
Top