windows task manager

Posted on 2013-01-18
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.

Question by:sidwelle
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 13

Accepted Solution

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.

Author Comment

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

Expert Comment

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

Author Comment

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 ??

Author Closing Comment

ID: 38857789
Thanks for the help.

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

An article on effective troubleshooting
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

710 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