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

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...

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.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.