Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

windows task manager

Posted on 2013-01-18
5
Medium Priority
?
225 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
[X]
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
5 Comments
 
LVL 13

Accepted Solution

by:
Gabriel Clifton earned 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

662 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