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]] \computername Specifies a remote computer. Commands are scheduled on the |
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 |
Copyright 2007 referpages
Related posts:
[...] 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 [...]