View Single Post
  #7 (permalink)  
Old 07-11-2007, 02:10 PM
ashtonaut@gmail.com
Newsgroup Contributor
 
Posts: n/a
Re: Task Scheduler: Repeat Task and Duration

I have the same problem on Vista Business 32bit.

I want a task to start at 7am, and run every three hours, for a total
of 12 hours (stopping at 7pm). I have reduced the task to a simple
echo statement.

Instead of stopping after 12 hours, the task continues to run for 24
hours. If I alter the "repeat task every" time, this is correctly
observed, but Vista appears to completely ignore the "for a duration
of" parameter.

In addition, I want the task to only run Monday-Friday, but Vista
ignores this also, and runs the task every single day, though this may
be because the "for a duration of" above is ignored.

Any help most appreciated.


On Jul 4, 11:44 pm, kirsch59 <kirsc...@discussions.microsoft.com>
wrote:[color=blue]
> I thought the scheduledtaskwas working when I chose the time options from
> therepeatand duration listboxes. It's not. It appears thetaskschedule
> is ignoring the duration time. Here's the scenario:
>
> At 11:00 PM Mon-Sun ataskis 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 thetasknot
> run if the start time is missed.
>
> The problem is that thetaskalways runs after the 1 hour duration.
>
> Any idea why?
>
> Thanks
>
> "Ronnie Vernon MVP" wrote:[color=green]
> > Kirsch59[/color]
>[color=green]
> > Have you tried a setting between 1 minute and 5 minutes? Let me know what
> > this does.[/color]
>[color=green]
> > --[/color]
>[color=green]
> > Ronnie Vernon
> > Microsoft MVP
> > Windows Shell/User[/color]
>[color=green]
> > "kirsch59" <kirsc...@discussions.microsoft.com> wrote in message
> >news:F2C14585-E9D9-4936-9ACB-11664AB3B983@microsoft.com...[color=darkred]
> > > Also, when I have thetaskrepeatevery 5 minutes for a duration of 1 hour
> > > it
> > > works fine. Those times are options from the listbox.[/color][/color]
>[color=green][color=darkred]
> > > Thanks[/color][/color]
>[color=green][color=darkred]
> > > "Ronnie Vernon MVP" wrote:[/color][/color]
>[color=green][color=darkred]
> > >> Kirsch59[/color][/color]
>[color=green][color=darkred]
> > >> What is thetask, how long does it take to run thetask, what files are
> > >> called to run thetask? It sounds like the duration of thetaskis taking
> > >> longer than the 1 minute schedule?[/color][/color]
>[color=green][color=darkred]
> > >> --[/color][/color]
>[color=green][color=darkred]
> > >> Ronnie Vernon
> > >> Microsoft MVP
> > >> Windows Shell/User[/color][/color]
>[color=green][color=darkred]
> > >> "kirsch59" <kirsc...@discussions.microsoft.com> wrote in message
> > >>news:6FA65D4A-440F-4E2A-8E55-D5486759BBD2@microsoft.com...
> > >> >I would like torepeatataskevery 1 minute for a duration of 8 hours.
> > >> > 1 minute and 8 hours are not options in the list box. When I overwrite
> > >> > the
> > >> >repeatvalue to 1 minute and the duration to 8 hours thetaskstarts
> > >> > all
> > >> > the
> > >> > time and does not stop.[/color][/color]
>[color=green][color=darkred]
> > >> > Any work arounds? I was able to change therepeatand duration under
> > >> > XP.[/color][/color]
>[color=green][color=darkred]
> > >> > Thanks[/color][/color][/color]


Reply With Quote

 
Old 07-11-2007, 02:10 PM