If I schedule a task using windows task scheduler for, say, 2 minutes from now, and for some reason the computer is shut down 1 minute from now, and turned on 3 minutes from now, will the task that was scheduled still run?

If not, what can I do to mimic this functionality?

I'm writing a Java application that needs to execute a variety of system commands and I'd prefer the operating system actually manage the task execution phase. All I really need to have happen is for the task to execute as soon as possible by the operating system.

link|improve this question

50% accept rate
feedback

1 Answer

No, it won't execute. The Task Scheduler in Vista and 7 can be configured to run missed instances, but XP's can't.

However, all 3 can be set to wake the computer if it's asleep or hibernating.

enter image description here

link|improve this answer
+1 You beat me to it, but I am going to add a screenshot. – KCotreau Jul 20 '11 at 0:19
I'm using schtasks to set up the task (programmatically), do you know the flag for "Run task as soon as possible"? – Mark Jul 20 '11 at 0:21
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.