|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
scheduled service task...Hi all,
I need a C# windows service to run every few days or so (say every 10 days)... the service starts up automatically w/ WinXP. What would be the best option to use, System.Timers or System.Threading & how would I get it to run & start over every 10 days; as in the number of cycles to sleep or schedule it? TIA Personally I dont think windows services should be used for scheduling
events. That is what the task schedular is for. You should always use the task schedular if you can as it is fully featured, tested, and already running. Leaving you own service running but inactive for 10 days at a time is just a waste of resources. HTH Ciaran O'Donnell Show quoteHide quote "Aerodyne" wrote: > Hi all, > > I need a C# windows service to run every few days or so (say every 10 > days)... the service starts up automatically w/ WinXP. > > What would be the best option to use, System.Timers or System.Threading > & how would I get it to run & start over every 10 days; as in the > number of cycles to sleep or schedule it? > > > TIA > > Use the scheduler service, thats what its deisgned for. Windows services
are not designed for what you are describing. Show quoteHide quote "Aerodyne" <aerody***@gmail.com> wrote in message news:1158911333.372584.40460@i3g2000cwc.googlegroups.com... > Hi all, > > I need a C# windows service to run every few days or so (say every 10 > days)... the service starts up automatically w/ WinXP. > > What would be the best option to use, System.Timers or System.Threading > & how would I get it to run & start over every 10 days; as in the > number of cycles to sleep or schedule it? > > > TIA >
OSQL UserName and PWd
Nice exceptions. Writing update back to MSAccess table? Problems when writing a SMTP client and talk with the hotmail How to shutdown open network ports? Implementing Nested Transaction in C# Looking for good referencing on unmanaged code interop unsafe bug ? How to Convert SHDocVw.WebBrowser to System.Windows.Forms.WebBrowser Forms |
|||||||||||||||||||||||