Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Compare this question . –  hstoerr Sep 7 '11 at 13:21
    
@hstoerr, I asked mine first. The other question was asked in December 2009, this one was asked in July 2009. –  Paul Tomblin Sep 7 '11 at 13:31
    
That's fine. The link is for the benefit of people like me, who arrive at this question by search. –  hstoerr Sep 7 '11 at 14:22

4 Answers 4

up vote 18 down vote accepted

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

share|improve this answer
    
Try having a program execute every half an hour. 8-{ No way. –  hstoerr Sep 7 '11 at 13:13

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

share|improve this answer

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.

share|improve this answer
    
at is just the command-line command to create scheduled tasks. It's still the Task Scheduler Service running in background :) –  Joey Jul 17 '09 at 0:36
    
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 Jul 17 '09 at 0:59

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.