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?
This question is related to
windows
scheduled-tasks
To schedule the update to be automatic you should:
If you cannot find the Schedule settings, look under: Properties, Edit, Triggers.
You can also create a batch file like the following if you need finer granularity between calls:
:loop
CallYour.Exe
timeout /t timeToWaitBetweenCallsInSeconds /nobreak
goto :loop
Some of the links provided are only settings for Windows 2003's version of "Scheduled Tasks"
In Windows Server 2008 the "Tasks" setup only has a box with options for "5 Minutes, 10 minutes, 15 minutes, 30 mins, and 1 hour" (screen shot: http://i46.tinypic.com/2gwx7r8.jpg)... where the Window 2003 was a "enter whatever number you want" textbox.
I thought doing an "Export" and editing the XML from: PT30M to PT2M
and importing that as a new task would "trick" Tasks into repeating every 2 mins, but it didn't like that
My workaround for getting a task to run every 2 mins in Windows 2008 was to (ugggh) setup 30 different "triggers" for my task repeating every hour but staring at :00, :02, :04, :06 and so on and so on.... took me 8-10 mins to setup but I only had to do it once :-)
On XP, I clicked the Advanced
button on the Schedule
tab. There is a checkbox for Repeat task
. The default is every 10 minutes.
Additionally, you can create scheduled task via the command line. I haven't tried this myself, but it looks like you'd want something along the lines of (not tested):
schtasks /create /tn "Some task name" /tr "app.exe" /sc HOURLY
In the "Repeat Task every:" just type 2 minutes instead of choosing from the dropdown list.
After you select the minimum repeat option (5 minutes or 10 minutes) you can highlight the number and write whatever number you want
Source: Stackoverflow.com