tags:

views:

159

answers:

7

I'm writing a small app that needs to be executed once a week. I could write it as a service that runs constantly but only executes the task that I need it to once a week, but that seems like overkill.

Is there another way of executing an application once every x period of time? I'm looking for a solution that doesn't involve user interaction.

+15  A: 

Scheduled task on Windows.

On *nix (using mono for c#/.net) - use cron.

Sunny
Definitely the way to go. I always hate it when applications include their own program for that kind of stuff (Java springs to mind ... or Lenovo's ThinkVantage stuff)
Joey
+2  A: 

You could use the Windows Task Scheduler. It was designed with this scenario in mind.

Reed Copsey
+2  A: 

You can use Windows Scheduler for planning execute app once a week.

MicTech
+3  A: 

How to schedule a task.

Shoban
+1  A: 

You can use the Windows Task Scheduler in the Control Panel. Just set up a task to run your application on the specified day. You can even tell it to run as a certain user if you want.

heavyd
+3  A: 

You can always use Windows Scheduled Tasks. They can be ugly, but effective.

Lee
+2  A: 

Under windows you can use the at utility.

Andrew Austin