run a script every 4 hours with task scheduler

jim smith picture jim smith · Jan 20, 2014 · Viewed 75k times · Source

I have windows 2008 task scheduler I set up a PHP script to run like this

C:\php\php.exe -f etc...

In windows task scheduler I can only schedule daily or hourly how can I configure it to run every 4 hours?

Answer

Mikhail picture Mikhail · Jan 21, 2014

In Windows Server 2008/2008R2 you can set task to repeat every number of hours you want, corresponding drop down menu just present you with 1 hour option to select, but you can type in any number of hours you need (see screenshot below).

enter image description here