Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a task every x-minutes with Windows Task Scheduler [closed]

I'm trying to get Windows Task Scheduler to run a particular .exe every 10 minutes or so, but the options only allow for once a day execution.

Is there a way I can get it to run a .exe every 10 or 20 minutes?

like image 734
kacalapy Avatar asked Nov 22 '10 19:11

kacalapy


People also ask

Does Task Scheduler work when closed?

No, it won't execute. The Task Scheduler in Vista and 7 can be configured to run missed instances, but XP's cannot. See the checkbox below called Run task as soon as possible after a scheduled start is missed. However, all three can be set to wake the computer if it's asleep or hibernating.

How do I run Task Scheduler every hour?

To set the script to run hourly, we select the 'Repeat task…' option and enable it. We select the '1 hour' option, indicating that we wish for the task to execute on an hourly basis, and select the duration as indefinite under the duration option.


1 Answers

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?):

  1. Double click the task and a property window will show up.
  2. Click the Triggers tab.
  3. Double click the trigger details and the Edit Trigger window will show up.
  4. Under Advanced settings panel, tick Repeat task every xxx minutes, and set Indefinitely if you need.
  5. Finally, click ok.
like image 121
Coincoin Avatar answered Oct 15 '22 01:10

Coincoin