JSI Tip 0460 - How do I schedule a job to run every hour?

Jerold Schulman

March 20, 1998

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Using SOON from the resource kit and the DOS trick from tip 273, you can create a batch job that self schedules:

SOON 3600 "%0"
...other commands...
exit

This re-schedules your batch file to run again in 3600 seconds (one hour). To start the process, use the SOON or AT command.

To Stop it from rescheduling, type AT to get the current ID and then type:

AT \ComputerName ID /DELETE

You could get a good scheduler like OpalisRobot, which allows scheduling granularity in seconds and/or hours and/or days.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like