AT

RECENT NEWS

12/18/2015 - Hello! We're excited to announce that Mental Works Computing Software will soon be featuring

12/11/2015 - We're going to announce Dr.Batcher 3.0 Alpha with batch files debugger support soon. If you want to start...

News history...

TESTIMONIALS

Rob van der Woude:
"Mental Works Computing Software has created a nice tool for...

Andrew Jaritsyn:
“I used to write batch files with the help of Notepad, but...

Steve H.:
“This tool helped me to write some batch files in a couple...

More...

AT

Runs commands or programs on the computer at the specified time and day. Works only when Schedule service is running.

Syntax:

AT [\\ComputerName] hh:mm [/interactive] [ /every:day(s) | /next:day(s) ] “command”

AT [\\ComputerName] [ [id] [/delete] | /delete [/yes]]

The first syntax adds an AT job, the second one removes it.

ComputerName – the name of remote computer. Do not enter this parameter to run commands or programs on local computer.

Hh:mm – the time when you want to run the program or command. Should be used in 24-hours notation.

Interactive – allows the command to interact with user logged on when the command runs.

Every – runs the command every specified day(s) of the week or month.

Next – runs the command on the next occurrence of the specified day.

Command – command or program to run.

Id – the number of scheduled job to be deleted (this number is given by AT command).

Delete – deletes the specified job or deletes all jobs if ID is not specified.

Yes – auto-accepts all system prompts while deleting the scheduled task.

Usage:

Without parameters AT command displays the whole list of the scheduled tasks.

If you are not running an executable file (batch file, EXE file, etc.) you should explicitly call command prompt.

Days for ‘every’ and ‘next’ parameters have the following format:

m ‑ Monday

t ‑ Tuesday

w ‑ Wednesday

th ‑ Thursday

f ‑ Friday

s ‑ Saturday

su ‑ Sunday

Also you can use numbers to specify days, for example, 1 for Monday, etc.

You should have Local Administrator permissions to run AT command at the local machine or Domain Administrator permissions for remote machines.

With only extension specified it shows the current association for it.

With only extension and ‘=’ specified (no file type specified) it removes the association.

Examples:

Run command every day:

AT 10.00 /every:m,t,w,th,f,s,su make_backup.bat

Run once:

AT 10.00 /next:su backup2.bat

Remove all tasks:

AT /delete /yes

 

Subscribe batch files programming newsletter (no spam):

Subscribe

Unsubscribe