Schedule using Windows ‘At’ command

{lang: 'ar'}

The ‘At’ command in Windows allows you to schedule any program or script to run at a specified time. You can schedule the program to run on specified days of the week at the specified time. This works with the Scheduling service and hence the Schedule service must be running to use the ‘At’ command. This article is for Windows XP. For Windows 7, click here

Setting Up At command

  • Open Service panel and ensure ‘Task Scheduler’ service is running. If not, start the ‘Task Scheduler’ and proceed with the below mentioned steps.
  • Select Start > Run and enter cmd in the dialog box.
  • Enter parameters to schedule a program. In the below mentioned example, running the Disk Clean utility every day of the week (Mon thru Fri at 11:45 A.M) is shown. Enter the following at the command prompt: at 11:45 /interactive /every:M,T,W,Th,F “cleanmgr.exe”
C:Documents and Settings>at 11:45 /interactive /every:M,T,W,Th,F “cleanmgr.exe”
  • In the above box, 11:45 represents the time program is run, interactive allows the job to interact with the user, every:date runs the job on specified day(s). If this parameter is omitted, the job is run at the current day of the month.
  • Enter at /? at the command prompt to get a list of arguments for the ‘At’ command
C:Documents and Settings>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] | /DELETE [/YES]]
AT [\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] “command”

\computername Specifies a remote computer. Commands are scheduled on the
local computer if this parameter is omitted.
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 Used with cancel all jobs command when no further
confirmation is desired.
time Specifies the time when command is to run.
/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 each specified day(s) of the week or
month. 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). If date is omitted, the
current day of the month is assumed.
“command” Is the Windows NT command, or batch program to be run.

View Scheduled Programs

Enter at to view the scheduled programs as shown below.

C:Documents and Settings>at
Status ID Day Time Command Line
———————————————————————————
1 Each M T W Th F 11:15 AM notepad.exe
2 Each M T W Th F 11:45 AM cleanmgr.exe

Deleting Schedule

Enter <id> /delete to delete schedule relating to the specified id. If id is omitted, it deletes all the scheduled programs.

C:Documents and Settings>at 1 /delete

 

 

 

Click here for reuse options!

Copyright 2007 referpages

Related posts:

  1. ««Schedule using`At`command in Windows 7

Trackbacks

  1. [...] service must be running to use the ‘At’ command.  This article is for Windows 7. Click here for Windows XP steps Setting Up At commandOpen Service panel and ensure ‘Task [...]

Speak Your Mind

*

Page optimized by WP Minify WordPress Plugin