View Single Post
  #6 (permalink)  
Old 07-04-2007, 04:51 AM
kirsch59
Newsgroup Contributor
 
Posts: n/a
Re: Task Scheduler: Repeat Task and Duration

I thought the scheduled task was working when I chose the time options from
the repeat and duration listboxes. It's not. It appears the task schedule
is ignoring the duration time. Here's the scenario:

At 11:00 PM Mon-Sun a task is scheduled to run a program every 5 minutes for
a duration of 1 hour. The batch program contains the shutdown command with a
message and 60 seconds delay. Let the start date be tomorrow (future date).

Tomorrow at 11:00 PM the batch program runs. I would expect the PC to
shutdown if someone logs on to the computer between 11:00PM - 12:00 and it
does. If someone logs on the the PC after 12:00 I would expect the batch
program not to run because the duration is over 1 hour. I have the task not
run if the start time is missed.

The problem is that the task always runs after the 1 hour duration.

Any idea why?

Thanks




"Ronnie Vernon MVP" wrote:
[color=blue]
> Kirsch59
>
> Have you tried a setting between 1 minute and 5 minutes? Let me know what
> this does.
>
> --
>
> Ronnie Vernon
> Microsoft MVP
> Windows Shell/User
>
>
> "kirsch59" <kirsch59@discussions.microsoft.com> wrote in message
> news:F2C14585-E9D9-4936-9ACB-11664AB3B983@microsoft.com...[color=green]
> > Also, when I have the task repeat every 5 minutes for a duration of 1 hour
> > it
> > works fine. Those times are options from the listbox.
> >
> > Thanks
> >
> > "Ronnie Vernon MVP" wrote:
> >[color=darkred]
> >> Kirsch59
> >>
> >> What is the task, how long does it take to run the task, what files are
> >> called to run the task? It sounds like the duration of the task is taking
> >> longer than the 1 minute schedule?
> >>
> >> --
> >>
> >> Ronnie Vernon
> >> Microsoft MVP
> >> Windows Shell/User
> >>
> >>
> >> "kirsch59" <kirsch59@discussions.microsoft.com> wrote in message
> >> news:6FA65D4A-440F-4E2A-8E55-D5486759BBD2@microsoft.com...
> >> >I would like to repeat a task every 1 minute for a duration of 8 hours.
> >> > 1 minute and 8 hours are not options in the list box. When I overwrite
> >> > the
> >> > repeat value to 1 minute and the duration to 8 hours the task starts
> >> > all
> >> > the
> >> > time and does not stop.
> >> >
> >> > Any work arounds? I was able to change the repeat and duration under
> >> > XP.
> >> >
> >> > Thanks
> >>[/color][/color]
>[/color]
Reply With Quote

 
Old 07-04-2007, 04:51 AM