Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Schedule Tasks with C# code in .NET

Status
Not open for further replies.

stardv

Technical User
May 27, 2004
33
US
I am trying to create an application that will give the user an option to choose time to schedule certain task that will be called as a method and must run according to specified schedule by user.
Could you please recommend me what would be the best approach for this problem.

I had 2 ideas in my mind. First is just to use windows AT command for scheduling and write win command when user schedules, but this way I will not be able to retrieve and delete previous task as far as I understand. The other idea was to use thread and put it to sleep according to scheduling selected.

It would be very interesting to hear your ides. Interesting topic.
 
You can run "at" without any parameters to see what's in the list. You can then call at with the "/delete" switch to remove one.

I've always written NT Services that had timers. This allowed me to "pause" my jobs by stopping the service.

Chip H.



____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks for a advice.
But how do you refere to a specefic task to delete it, by ID?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top