At
The at command schedules commands and programs to run on a computer at a specified
time and date. The Schedule service must be running to use the at command.
at [\\computername] [[id] [/delete [/yes]]
at [\\computername] time [/interactive] [/every:date[,...] | /next:date[,...]] "command"
Parameters
none
Used without paramaters, at lists scheduled commands.
\\computername
Specifies a remote computer. If this parameter is omitted, the commands are
scheduled on the local computer.
id
Is an identification number assigned to a scheduled command.
/delete
Cancels a scheduled command. If id is omitted, all the scheduled commands on
the computer are canceled.
/yes
Forces a yes answer to all queries from the system when deleting scheduled
events.
time
Specifies the time when command is to run. Time is expressed as hours:minutes in 24-hour notation (00:00 [midnight] through 23:59).
/interactive
Allows the job to interact with the desktop of the user who is logged on at
the time the job runs.
/every:date[,...]
Runs the command on every specified day(s) of the week or month (for example,
every Thursday, or the third day of every month). Specify date as one or more
days of the week (M,T,W,Th,F,S,Su) or one or more days of the month (using
numbers 1 through 31). Separate multiple date entries with commas. If date is
omitted, the current day of the month is assumed.
/next:date[,...]
Runs the specified command on the next occurrence of the day (for example,
next Thursday). Specify date as one or more days of the week (M,T,W,Th,F,S,Su) or
one or more days of the month (using numbers 1 through 31). Separate multiple
date entries with commas. If date is omitted, the current day of the month is
assumed.
"command"
Is the Windows NT command, program (.EXE or .COM file) or batch program (.BAT
or .CMD file) to be run. When the command requires a path as an argument, use
the absolute path, that is, the entire pathname beginning with the drive letter.
If command is on a remote computer, specify the server and sharename, rather
than a remote drive letter. You may use quotation marks around the command,
whether you are using at at the command line or in a batch file. If the command includes switches that
are used by both the command and at, you must enclose command in quotation marks. If the command is not an
executable (.EXE) file, you must precede the command with cmd /c; for example cmd /c dir > c:\test.out.
More Information About At
At--Notes
At--Examples