Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-01-2007, 06:10 AM
kirsch59
Tablet PC Guest
 
Posts: n/a
Task Scheduler: Repeat Task and Duration

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-01-2007, 06:10 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 07-01-2007, 10:30 AM
Ronnie Vernon MVP
Tablet PC Guest
 
Posts: n/a
Re: Task Scheduler: Repeat Task and Duration

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 07-01-2007, 02:20 PM
kirsch59
Tablet PC Guest
 
Posts: n/a
Re: Task Scheduler: Repeat Task and Duration

The task calls a .bat program that has the following command:

shutdown -s -t 60 -c "Save data and close programs. PC shutting down in 60
seconds."

I replaced the shutdown command with a simple ECHO command to debug the
problem. The problem still persists.

The shutdown and echo commands work fine. The problem is the task repeats
more frequently then 1 minute and the duration is beyond 8 hours.

I'm wondering if I cannot override Microsoft's listbox selections for the
repeat times and duration times.



"Ronnie Vernon MVP" wrote:

> 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

>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 07-02-2007, 03:30 AM
kirsch59
Tablet PC Guest
 
Posts: n/a
Re: Task Scheduler: Repeat Task and Duration

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:

> 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

>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 07-02-2007, 11:40 AM
Ronnie Vernon MVP
Tablet PC Guest
 
Posts: n/a
Re: Task Scheduler: Repeat Task and Duration

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...
> 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:
>
>> 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

>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 07-04-2007, 03:51 AM
kirsch59
Tablet PC Guest
 
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:

> 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...
> > 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:
> >
> >> 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
> >>

>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 07-11-2007, 01:10 PM
ashtonaut@gmail.com
Tablet PC Guest
 
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:
> 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-11664AB3B983@microsoft.com...
> > > 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-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.

>
> > >> > Any work arounds? I was able to change therepeatand duration under
> > >> > XP.

>
> > >> > Thanks



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduled Task Start/End Duration and Intervals kirsch59 Windows Vista 1 07-09-2008 01:50 AM
Task Scheduler DaveN Windows XP 3 07-02-2007 09:30 AM
Task scheduler problem : task do not close Junkyard Engineer Windows Vista 0 06-06-2007 06:00 PM
Task Scheduler Talal Itani Windows XP 2 04-17-2007 02:15 PM
Task Scheduler 'How To' Jeff Gaines Windows Vista 4 01-02-2007 11:16 AM


All times are GMT -8. The time now is 08:08 AM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0