Question

Locked

Automatically Pausing Scheduled Tasks in Windows

By AttaboyNC ·
I'm wondering whether it is possible to pause a scheduled task in Windows.

I have a scheduled task that looks for the presence of a file every 30 minutes and then processes the file. (The file appears at various times over the course of about 8 hours and needs to be processed quickly after it appears.)

I'd like to modify the process so that once the file is found and processed, the scheduled task is paused for 8 hours so that it doesn't needlessly re-look for and re-process the same file every 15 minutes after it was originally processed. The scheduled task would then need to be "active" after that up to 8 hour pause.

Thank you for your time.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Food for thought

by IC-IT In reply to Automatically Pausing Sch ...

You can set a task to be triggered by an event. So if the event is the arrival of the file, then the task would only run when the file arrives.
You will need some scripting/programming skills.
Here is a guide;

http://msdn.microsoft.com/en-us/library/aa384006(VS.85).aspx

What OS/server OS is being used? Server 2008 added a bit of functionality to the scheduller;

http://blogs.techrepublic.com.com/datacenter/?p=362

Collapse -

Thanks -- Looking forward to reading the linked article

by AttaboyNC In reply to Food for thought

Many thanks IC-IT! The link you provided looks very interesting. I'm looking forward to digging into my options.

Best regards

Collapse -

Your Welcome [ NT ]

by IC-IT In reply to Thanks -- Looking forward ...
Back to Software Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums