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?

Thanks

link|improve this question

40% accept rate
feedback

1 Answer

up vote 1 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
link|improve this answer
genius, thanks! – AP257 Mar 17 '11 at 18:41
feedback

Your Answer

 
or
required, but never shown

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