Windows equivalent to cron?

11

3

What's the Windows equivalent to cron, or for those of you unfamiliar with Unix, how does one schedule a program to run at regular intervals?

Paul Tomblin

Posted 2009-07-17T00:20:31.820

Reputation: 1 962

Compare this question .

– Hans-Peter Störr – 2011-09-07T13:21:52.953

@hstoerr, I asked mine first. The other question was asked in December 2009, this one was asked in July 2009. – Paul Tomblin – 2011-09-07T13:31:20.800

That's fine. The link is for the benefit of people like me, who arrive at this question by search. – Hans-Peter Störr – 2011-09-07T14:22:17.473

Answers

20

Scheduled Tasks:

With Scheduled Tasks, you can schedule any script, program, or document to run at a time that is most convenient for you. Scheduled Tasks starts every time that you start Windows XP and runs in the background, and it starts each task that you schedule at the time that you specify when you create the task.

Also, you should check out this article from Lifehacker on using Scheduled Tasks. It gives examples for Defragging your computer, restarting your computer, and opening Firefox when at startup with a set of websites

Josh Hunt

Posted 2009-07-17T00:20:31.820

Reputation: 20 095

Try having a program execute every half an hour. 8-{ No way. – Hans-Peter Störr – 2011-09-07T13:13:28.607

3

Another idea is to use Cygwin and use VixieCron. You can even install cron as a service so it will run your cronjobs without having Cygwin open. Its perfect for the Unix geek who doesn't have the time or want to learn the Windows way.

Here is a link that should help you get started. Running cygwin cron from windows as a service.

Weegee

Posted 2009-07-17T00:20:31.820

Reputation: 361

1

Windows task scheduler. Support article for scheduling tasks on XP.

JP Alioto

Posted 2009-07-17T00:20:31.820

Reputation: 6 278

1

The AT command does the same job, I am guessing it is still supported on vista ... checking ... yes it is still on W7 RC 1, just type "at /?" for how to use it.

Bruce McLeod

Posted 2009-07-17T00:20:31.820

Reputation: 5 490

at is just the command-line command to create scheduled tasks. It's still the Task Scheduler Service running in background :) – Joey – 2009-07-17T00:36:49.227

Sure, but for a unix head (like me) I tend to think in terms of the command line utility, rather than the background service. I think of windows scheduler (incorrectly) as a scheduling wizard gui interface. – Bruce McLeod – 2009-07-17T00:59:28.450