Solved

windows task manager

Posted on 2013-01-18
5
188 Views
Last Modified: 2013-02-05
I have a task the repeats every 15 minutes. But if the script that I am running determines that for the rest of the 12 hour period there will be nothing to do, Can I make some sort of API call and expire the task for today ?   Not delete the task; I want it to start again in the morning running every 15 mins.

Thanks
0
Comment
Question by:sidwelle
  • 3
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
Gabriel Clifton earned 500 total points
ID: 38794419
Instead of having it "pause" the scheduled task for rest of the day, why don't you have the script run once a day, check for certain conditions and if met run if not pause for x minutes then rerun.
0
 

Author Comment

by:sidwelle
ID: 38794611
That's option B, I was under the impression that Tasks could be altered with an API.
0
 
LVL 13

Expert Comment

by:Gabriel Clifton
ID: 38794900
not sure of anything other net stop schedule
0
 

Author Comment

by:sidwelle
ID: 38795662
I might be leaning toward the first option because I am finding that the schedule even though it is set to run the app for 12 hours after the kickoff time, just continues to run it continuously.  What’s up with that ??
0
 

Author Closing Comment

by:sidwelle
ID: 38857789
Thanks for the help.
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now