views:

546

answers:

4

Let me preface this by saying that I'm pretty green to C# and .NET development in general. That being said, I'd like to schedule a console application to run some code once every 24 hours.

I'm open to any form of implementation, including timers, schedulers, or even a separate application that would call my console application, as long as it involves C#.

I know it's an open-ended question, so I appreciate anyone taking the time to point me in an arbitrarily right direction.

+5  A: 

Generally it's not up the program being written to schedule itself, unless it's a daemon performing some action very frequently. It sounds like want the Windows task scheduler.

meagar
+1  A: 

Check out Quartz.NET if you want to control the scheduling within a .NET application. Otherwise it's probably easiet to schedule you're executable with Windows Task Scheduler.

cxfx
+5  A: 

You can use Windows Service for this. its better in many ways. You can have it restarted if it crashes and also Windows service will run even if no one is logged in. If you still want a console application then you can use Windows Task scheduler and it does a pretty good job.

Shoban
Where I work this kind of application is always done in a Windows Service.
Jonathan Allen
A: 

Use quartznet.sourceforge.net Or you can do something like this: http://www.codeproject.com/KB/shell/scheduler.aspx

Muzahidul Islam