.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

Tash scheduler

Posted By:Gowthammanju       Posted Date: July 09, 2011    Points: 40    Category:    URL: http://www.dotnetspark.com  

This code explains about integrating task scheduler in c#
 

Hey try these steps as


1) download Microsoft.Win32.TaskScheduler.dll by clicking this link

2)use code as

TaskService ts = new TaskService();
TaskDefinition td = ts.NewTask();
td.Triggers.Add(new WeeklyTrigger(DaysOfTheWeek.Friday, 1));
td.Actions.Add(new ExecAction("whatever.exe", null, null));
ts.RootFolder.RegisterTaskDefinition("taskname", td);


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend