p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   General .NET (http://p2p.wrox.com/forumdisplay.php?f=122)
-   -   Schedule a console app (http://p2p.wrox.com/showthread.php?t=52299)

hamilton January 5th, 2007 08:51 AM

Schedule a console app
 
Hi there I am looking to know how I can schedule a console application to run on a server at a set time everyday.

I have written the the app in vb.net using vs2005

Your help is really appreciated

cheers
Hamilton


planoie January 5th, 2007 10:50 AM

Initially, there are two solutions:

Easy: Set up the windows scheduler to execute the program and the desired schedule.

Hard: Make the program and windows service with timer functionality to fire off the desired logic at the configured time.

I don't put a lot of faith in the windows scheduler. I've had it crap out on me on a number of occasions.

Alternative solution to save you from writing your own windows service:
I have worked a lot with continuous integration using an open source .NET application called CruiseControl.NET (http://ccnet.thoughtworks.com/). I have actually used it as a replacement for the windows scheduler because it always works plus it has a web interface for monitoring and controlling tasks as well as very good logging and task control.

-Peter


All times are GMT -4. The time now is 06:14 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.