1

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

AP257
  • 205
  • 1
  • 4
  • 7

1 Answers1

2

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
Hyppy
  • 3,712
  • 20
  • 18