Thursday, October 08, 2009

Schtasks

Schedules commands and programs to run periodically or at a specific time. Adds and removes tasks from the schedule, starts and stops tasks on demand, and displays and changes scheduled tasks.

via microsoft

I've known about the at command to schedule tasks in windows, and it turns out that schtasks is a more detailed command.

For instance to schedule a task to run every five minutes:

schtasks /create /tn "task name goes here" /tr executable_goes_here.exe /sc minute /mo 5