By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,056 Members | 1,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,056 IT Pros & Developers. It's quick & easy.

scheduled service task...

P: n/a
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

Sep 22 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"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

Sep 22 '06 #2

P: n/a
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


"Aerodyne" <ae*******@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.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

Sep 22 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.