AT
Deprecated command
:
use SCHTASKSSCHTASKS instead.
(from Arrange Tasks)
Schedules commands or programs to run on your computer at a specified time and date.
AT [\\computername] [[id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE] [/EVERY:date[,...] | /NEXT:date[,...]] "command"
Where:
\\computername
- Specifies the name of the remote computer. If omitted, commands are scheduled on the local computer.id
- Identification number assigned to a scheduled command./DELETE
- Cancels a scheduled command. Ifid
is omitted, all scheduled commands on the computer are canceled./YES
- Cancels processes without being asked for confirmation.time
- Specifies the time at which to run the command (xx.xx
format)./INTERACTIVE
- Allows the process to interact with the desktop of the user who is logged on when the process is running./EVERY:date[,…]
- Executes the command on a day of the week or month. If the date is omitted, the current day of the month is used./NEXT:date[,…]
- Executes the specified command on the next occurrence of the date. If the date is omitted, the current day of the month is used."command"
- Command or path to the batch file to execute.
Examples:
1. Run the file C:\file.bat
at 1:00 PM on computer user-12345678
on the fifth day of next month:
at \\user-12345678 13.00 /next:5 "C:\file.bat"
2. Cancel all scheduled commands for the computer user-abcdef00
:
at \\user-abcdef00 /delete
Further information:
To find out your computer name, simply type:
echo %computername%
Press Enter… and voila! Here is your computer name.
Comments