Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Could anyone give me an example of how to use schtasks and at on Windows to schedule a weekly job?

In particular, I'd like to know how to make sure this job persists between server reboots, which presumably it won't necessarily do if I just type

Is there a Windows equivalent of the crontab file?


share|improve this question
up vote 2 down vote accepted

AT will not persist, but schtasks will.

Example schtasks command to run Frecell on the first sunday of every month (Windows 7)

SCHTASKS /Create /SC MONTHLY /MO first /D SUN /TN GameTime /TR c:\windows\system32\frecell
share|improve this answer
genius, thanks! – AP257 Mar 17 '11 at 18:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .