Run a task every x-minutes with Windows Task Scheduler
The task must be configured in two steps.
First you create a simple task that start at 0:00, every day. Then, you go in Advanced...
(or similar depending on the operating system you are on) and select the Repeat every X minutes
option for 24 hours.
The key here is to find the advanced properties. If you are using the XP wizard, it will only offer you to launch the advanced dialog once you created the task.
On more recent versions of Windows (7+ I think?):
- Double click the task and a property window will show up.
- Click the
Triggers
tab. - Double click the trigger details and the Edit Trigger window will show up.
- Under
Advanced settings
panel, tickRepeat task every
xxx minutes, and setIndefinitely
if you need. - Finally, click ok.
After you select the minimum repeat option (5 minutes or 10 minutes) you can highlight the number and write whatever number you want
You can also create a batch file like the following if you need finer granularity between calls:
:loop
call YourScript.Exe
timeout /t timeToWaitBetweenCallsInSeconds /nobreak
goto :loop