What is the At Command?
At Command Syntax
at [\\computername] hh:mm [/every:date[,...] | /next:date[,...]] [/interactive] [id] [/delete [/yes]] "command" [/?]
\\computername = Use this option to specify a remote computer name. The at command will schedule the running of command on the local computer if you don't specify a computername.
hh:mm = Specifies the time the command should be run in hour:minute format.
/every:date[,...] = Use the /every switch to run command on specific days of the week or month.
/next:date[,...] = Use the /next switch to run command on the next occurrence of the day.
/interactive = Allows the scheduled command to interact with whatever user is logged in when the job is run.
id = This is the unique number assigned to an already scheduled command. The id option is only used for displaying or deleting a particular scheduled command. You can not manually set an id to a scheduled command.
/delete [/yes] = This at command option is used to delete all previously scheduled commands. Use the /yes option with /delete to skip the "delete all scheduled jobs" confirmation question. Use /delete when specifying an id to delete a single scheduled command.
command = This specifies the command or program to run. You must enclose command in double-quotes.
/? = Use the help switch with the at command to show detailed help about the command's several options.
Tip: You can save any output from the at command to a file using a redirection operator with the command. See How To Redirect Command Output to a File for help or see Command Prompt Tricks for more tips.
At Command Examples
at 14:15 "chkdsk /f"
In the above example, the at command is used to schedule a run of the chkdsk command as chkdsk /f today only, at 2:15 pm, on the currently used PC.
at \\prodserver 23:45 /every:1,4,8,12,16,20,24,28 "bkprtn.bat"
In this example, the at command is used to schedule the execution of the bkprtn.bat batch file on computer named prodserver at 11:45pm on the 1st, 4th, 8th, 12th, etc. day of each month.
at 1 /delete
Here, the scheduled command with the id of 1 is deleted.
At Command Availability
The at command is not available in Windows 8. Microsoft recommends that you use the more feature-rich schtasks command instead.
Note: The availability of at command switches may differ somewhat from operating system to operating system.
At Related Commands
The at command is often used with many other Command Prompt commands due to the fact that it's used to schedule the running of other commands.