Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Repetitive Schedule Task needed to skip twice every hour

17 Feb 2014   #1
fhschmid

Windows 7 Enterprise x64
 
 
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 System SpecsSystem Spec
.
17 Feb 2014   #2
MilesAhead

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
Reply

 Repetitive Schedule Task needed to skip twice every hour




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows 7 schedule Task
Hi, Currently having some problem on the schedule job task on windows 7. example script in my bat file as list below. so we schedule and it run only thing is it did not show the dos windows for us to reply message. kindly help. Thanks echo on said Hello pause.
General Discussion
Schedule a task for when computer is idle
Hello guys, I'm having difficulties scheduling a task for when computer is idle. What I want to do is run a task after the computer has been idle for five minutes. I've tried creating a scheduled task in different ways, which will do this, but to no avail. I go to Task scheduler to create a...
Performance & Maintenance
24 hour skip function?
Is there a 24 hour skip or jump function in the guide? My Dish DVR has this ability & itís real handy to check the same program every day of the week. For example there may be a daily program but I only watch it when the topic interests me. I can check it Monday at 3pm & then just jump to Tues,...
Media Center
how to set a schedule task to run chkdsk
I tried to to set a schedule task to run chkdsk with a batch file, such as follwoing: echo y|chkdsk C: /F /R shutdown -r I run it on cmd.exe it needs administrator privilege. I run cmd.exe as administrator, then it works. I tried to run it on schedule task and set run by a administrator type...
General Discussion
Schedule a task
I want the computer to execute the following line: mms://wamu-wm.streamguys.com/WAMU-1 at 7:00 am until 10 am Monday through Friday. Unconditionally. I have explored the task menus ad-nausium... and still it does not trigger. There are simply too many options to list them here to...
Customization
Can I schedule a XP Mode task from Win 7?
I have a very old legacy app that would not run or install in Win 7 compatibility mode. I download the Windows VM patch, and the XP Mode application, installed them, and was able to get the application to run. Following some information I found here, I was able to get it pinned to the start menu...
Virtualization


Our Sites

Site Links

About Us

Find 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 11:19.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App