Repetitive Schedule Task needed to skip twice every hour


  1. Posts : 1
    Windows 7 Enterprise x64
       #1

    Repetitive Schedule Task needed to skip twice every hour


    I want to create a scheduled task that runs a program every 5 minutes every day of the week, but I want it to skip every half hour.
    I.E. if I start it at 12:06, the next time is 12:11, 12:15, 12:21, 12:26, (skip 12:31), 12:36, 12:41, 12:46, 12:51, 12:56, (skip 1:01), 1:06, and so on.

    Is there a way to do this with one task or do I need to create 10 task and run them every hour?

    Thanks for your help,

    Fred
      My Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    You could do it with any scripting that allows you to launch other programs and has a timer or sleep function. For example in AutoIt3

    Code:
    Global $count = 0
    Global $program = "notepad.exe" ; put complete path to your program here
    
    While 1                         ;infinite loop
        For $x = 1 To 6
            $count += 1
            Sleep(60000 * 5) ; wait 5 minutes
            If $count = 6 Then
                $count = 0
                ExitLoop            ;skip 6th 5 minute cycle
            EndIf
            ShellExecute($program)
        Next
    WEnd
    If you need stuff like browse to exe file ask for help on General Help and Support - AutoIt Forums
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:26.
Find Us