At | \ windows \system32\at.exe |
"At" is the command-line interface to the Scheduled Tasks feature, discussed later in this chapter, and is used to schedule commands and programs to run on a computer at a specified time and date. The syntax is as follows :
at [\computer] time [/interactive] [/every: date ] [/next: date ] " command " at [\computer] [ id ] [/delete] [/yes]
Option | Description |
---|---|
\\ computer | Specify the name of a remote computer on the network to add the new task to that computer's scheduled tasks list. |
time | The time of day to run the task, specified in 24- hour (military) time. |
/interactive | If you omit the /interactive option, the task will be run invisibly in the background. Use caution when starting background processes, however, as you won't be able to interact with them at all, other than closing them with Task Manager. |
/every: date /next: date | By default, At creates one-time tasks, executed only on the date in which they were created. To specify the day or range of days, use the /every or /next options. |
/delete | Use /delete to remove one or all tasks originally created with At. Specify the aforementioned task ID to end that task, or omit the ID to delete all tasks. |
/yes | Include /yes to bypass the prompt that appears when you attempt to delete all tasks. |
Run Disk Defragmenter at 11:15 P.M. every Thursday:
at 23:15 /every:thursday dfrg.msc
Run Disk Defragmenter at 11:15 A.M. on the 21st day of every month:
at 11:15 /every:21 dfrg.msc
Run Solitaire at 3:45 in the afternoon, Tuesdays and Thursdays:
at 15:45 /interactive /every:tuesday,thursday sol
Run chkdsk at 6:33 P.M. next Saturday only:
at 18:33 /next:saturday chkdsk