[2005] Scheduling in .Net
Can someone help with scheduling...
How do you do scheduling generally on .net?
suppose I want my application to send emails on monday,wednesday and friday...
or April month of every year...
How to schedule stuff like that APART FROM USING TIMER CONTROL...
Thanks :-)
P.S:I dont wanna use that timer control..
Re: [2005] Scheduling in .Net
Timers are the only way to do it within a .NET application that I'm aware of. You can leave it up to Windows and use the scheduled tasks feature. You can use the commandline shtasks.exe to create and edit Windows scheduled tasks. You can get help on the syntax from Windows Help & Support and gigemboy's CodeBank submission on redirecting commandline output would be useful.
Re: [2005] Scheduling in .Net
Use a System.Timers.Timer, have it tick close to the due time and then make the interval smaller. Once it's done, do something.
That, or use the task scheduler application in Windows.