Schedule a command to run in the near future (calls the AT command).
SOON [\\computer_name] delay [[/i[nteractive]] | [/i:[on | off]]] "command"
AT - Schedule a command to run at a later time.
Equivalent Linux BASH commands:
cron - Daemon to execute scheduled commands.
crontab - Schedule a command to run at a later time.
watch - Execute/display a program periodically.
The "Task Scheduler" service must be running to use SOON.
SOON schedules jobs to run at a time relative to the current time "minutes from now"
Rescheduling a job with SOON therefore requires no editing of the SOON command.
The most frequent difficulty people have with SOON is seemingly unreliable execution when attempting to use a delay of 60 seconds or less - see Q237840.
As with all AT jobs you should test your SOON scripts extensively by using the /INTERACTIVE option to be sure that they:
It is possible to set up a recurring job with SOON, the advantage of this over AT is that the system will never try to execute the same CMD script twice at the same time (because the SOON delay is relative to the last completion).
Here's a trivial example - a 10 minute reminder:
@ECHO OFF ::remindme.cmd NET SEND %username% hello ECHO Remind Me again? PAUSE SOON 600 /interactive C:\examples\remindme.cmd :eof
Start the script above running with:
SOON 600 /interactive C:\examples\remindme.cmd
and press Control-C to stop.