Home All Groups Group Topic Archive Search About

scheduled service task...

Author
22 Sep 2006 7:48 AM
Aerodyne
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

Author
22 Sep 2006 8:27 AM
Ciaran O''Donnell
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
>
>
Are all your drivers up to date? click for free checkup

Author
22 Sep 2006 11:57 AM
John Timney (MVP)
Use the scheduler service, thats what its deisgned for.  Windows services
are not designed for what you are describing.
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com




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
>

Bookmark and Share