Schedules tasks (commands or programs) to run on a computer at a specified time/date and manages scheduled tasks.
Note that in WS2003 the
schtasks command replaces
at command for managing and scheduling tasks
from the command line (the
at command is
maintained only for backward compatibility with W2K/NT). See
schtasks in this chapter for more info.
computername] [ [
id] [/delete] | [/yes] ] at [\\
time[/interactive] [/every:date[,...] | /next:date[,...] ]
Displays scheduled jobs.
Specifies the name of the remote computer on which the job is run. (If omitted, the job executes on the local computer.)
Is the identification number assigned to the scheduled job.
Removes a job from the list of scheduled jobs. (If
id is omitted, all scheduled jobs on the
specified computer are canceled.)
Executes the scheduled job without prompting for confirmation.
Specifies when the command is to run (syntax is
hours:minutes in 24-hour notation).
Lets the scheduled job interact with the desktop of the user logged on when the job runs.
Runs the job on specified day(s) of the week or month. Use
M,T,W,Th,F,S,Su for days or the numbers
31 for dates, and
separate them with commas. (If omitted, the current date is used.)
Runs the job on the next occurrence of the specified day or date.
Is the command, program (.exe or .com file), or batch file (.bat or .cmd file) ...