Repetitive Schedule Task needed to skip twice every hour

fhschmid

New member
Local time
7:36 PM
Messages
1
Location
Michigan
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 My Computer

At a glance

Windows 7 Enterprise x6412 GB
Computer type
Laptop
Computer Manufacturer/Model Number
Lenovo Thinkpad W510
OS
Windows 7 Enterprise x64
Memory
12 GB
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 My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top