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:
> 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:
> > 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" <kirsc...@discussions.microsoft.com> wrote in message
> >news:F2C14585-E9D9-4936-9ACB-...
> > > Also, when I have thetaskrepeatevery 5 minutes for a duration of 1 hour
> > > it
> > > works fine. Those times are options from the listbox.
>
> > > Thanks
>
> > > "Ronnie Vernon MVP" wrote:
>
> > >> Kirsch59
>
> > >> 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?
>
> > >> --
>
> > >> Ronnie Vernon
> > >> Microsoft MVP
> > >> Windows Shell/User
>
> > >> "kirsch59" <kirsc...@discussions.microsoft.com> wrote in message
> > >>news:6FA65D4A-440F-4E2A-8E55-...
> > >> >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.
>
> > >> > Any work arounds? I was able to change therepeatand duration under
> > >> > XP.
>
> > >> > Thanks
|