How To Use the AT Command to Schedule Tasks

How to Create a Scheduled Task

1. Click Start, point to Programs, point to Accessories, and then click Command Prompt.
2. At the command prompt, type the following line, and then press ENTER to display a list of currently running services:
net start
If Task Scheduler is not displayed in the list, type the following line, and then press ENTER:
net start “task scheduler”
3. At the command prompt, type the following line (use the parameters that are appropriate to your situation), and then press ENTER:
at \\computername time /interactive | /every:date,… /next:date,… command

Examples

* To copy all files from the Documents folder to the MyDocs folder at midnight, type the following line, and then press ENTER:
at 00:00 cmd /c copy C:\Documents\*.* C:\MyDocs
* To back up the Products server at 11:00 P.M. each weekday, create a batch file that contains the backup commands (for example, Backup.bat), type the following line, and then press ENTER to schedule the backup:
at \\products 23:00 /every:M,T,W,Th,F backup
* To schedule a net share command to run on the Sales server at 6:00 A.M. and to redirect the listing to the Sales.txt file in the shared Reports folder on the Corp server, type the following line, and then press ENTER:
at \\sales 06:00 cmd /c “net share reports=d:\Documents\reports >> \\corp\reports\sales.txt”