Home > Commands A-M > Commands A

AT


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Schedules commands and programs to be run on a computer at a specified date and time


Syntax

AT /?

Display all AT jobs:

AT

Create an AT job:

AT [\\computer_name] hh:mm [/INTERACTIVE] [/EVERY:days[,...] | /NEXT:days[,...]] "command"

Delete an AT job:

AT [\\computer_name] [[id] [/DELETE] | /DELETE [/YES]]


Parameters
"command" (NT3.1)
Specifies the BATCH/command to run. If the BATCH/command contains embedded spaces, use double-quotes.
\\computer_name (NT3.1)
Specifies the remote network computer to add the new task to that computers' scheduled task list. If omitted, use the local computer.
id (NT3.1)
Specifies to a specific task on the list.
hh:mm (NT3.1)
Specifies the time of day (using 24-hour military clock) to begin the task.

Switches
/? (NT4)
Display help.
/DELETE (NT3.1)
Remove one (or all) tasks from list. If you do not specify a task id, you will be prompted to confirm.
/EVERY:days[,...] (NT3.1)
/NEXT:days[,...] (NT3.1)
Overrides one-time default. Will begin every DAYS (ie. 21) of the month, or DAYS (thursday) of the week. You can specify multiple DAYS by separating them with commas (,). This option should not use /NEXT. AND /EVERY at the same time. DAYS can be abbreviated:
/INTERACTIVE (NT3.5)
Overrides the run in background default.
/YES (NT3.1)
Stops prompt when deleting all tasks from list.

Related

Replaced by SCHTASKS starting with Windows XP.


Notes

none.


Examples

Running a command every day

    AT 23:30 /EVERY:m,t,w,th,f,s,su C:\BACKUP\EVERY_DAY.CMD

Running a command every Friday

    AT 23:30 /EVERY:f C:\BACKUP\WEEKLY.CMD

Removing the above commands

    AT /DELETE /YES

Running a command once

    AT 23:30 /NEXT: C:\BACKUP\TODAY.CMD

Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NT3.1 NT3.5 NT3.51 NT4 NT2000 NTXP NT2003

Last Updated: 2006/12/01
Direct corrections or suggestions to: Rick Lively