Windows Vista task scheduler

  • Thread starter Thread starter Ruud Stam
  • Start date Start date
R

Ruud Stam

Guest
Hi all,

I have a problem with the task scheduler. I have a stockpicking program
(stockbrowser) that i want to run every hour from 8:00 till 18:00 on
weekdays... So I defined a task as listed below, but the darn thing won't
stop at 18:00. It keeps on running every hour weekdays, weekend, night and
day. Now I know that Vista has good stamina, but I hate it when I am playing
a game and it is starting to run in the background :)

Could somebody please tell me what i am doing wrong? You would be forever in
my mind... well at least a day or so :)

Thanks!!!

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2"
xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2008-02-18T11:39:25.081268</Date>
<Author>Ruud_2007\Ruud</Author>
</RegistrationInfo>
<Triggers>
<CalendarTrigger id="d78cdeed-0f1d-4ee6-bfb3-418c59f4f56d">
<Repetition>
<Interval>PT1H</Interval>
<Duration>PT10H</Duration>
<StopAtDurationEnd>true</StopAtDurationEnd>
</Repetition>
<StartBoundary>2008-02-18T08:36:45</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByWeek>
<DaysOfWeek>
<Monday />
<Tuesday />
<Wednesday />
<Thursday />
<Friday />
</DaysOfWeek>
<WeeksInterval>1</WeeksInterval>
</ScheduleByWeek>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>Ruud_2007\Ruud</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>false</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>true</WakeToRun>
<ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>C:\Stock\StockBrowser.exe</Command>
<Arguments>/download=IDS /CLOSEAFTERDOWNLOAD</Arguments>
</Exec>
</Actions>
</Task>

----------------------------
 
Re: task scheduler

Unless someone else comes up with a solution you could make a separate task
for each hour.

Mark

"Ruud Stam" <RuudStam@discussions.microsoft.com> wrote in message
news:47E86237-E5B1-4E89-B255-84CA3B5FE2F5@microsoft.com...
> Hi all,
>
> I have a problem with the task scheduler. I have a stockpicking program
> (stockbrowser) that i want to run every hour from 8:00 till 18:00 on
> weekdays... So I defined a task as listed below, but the darn thing won't
> stop at 18:00. It keeps on running every hour weekdays, weekend, night and
> day. Now I know that Vista has good stamina, but I hate it when I am
> playing
> a game and it is starting to run in the background :)
>
> Could somebody please tell me what i am doing wrong? You would be forever
> in
> my mind... well at least a day or so :)
>
> Thanks!!!
>
> <?xml version="1.0" encoding="UTF-16"?>
> <Task version="1.2"
> xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
> <RegistrationInfo>
> <Date>2008-02-18T11:39:25.081268</Date>
> <Author>Ruud_2007\Ruud</Author>
> </RegistrationInfo>
> <Triggers>
> <CalendarTrigger id="d78cdeed-0f1d-4ee6-bfb3-418c59f4f56d">
> <Repetition>
> <Interval>PT1H</Interval>
> <Duration>PT10H</Duration>
> <StopAtDurationEnd>true</StopAtDurationEnd>
> </Repetition>
> <StartBoundary>2008-02-18T08:36:45</StartBoundary>
> <Enabled>true</Enabled>
> <ScheduleByWeek>
> <DaysOfWeek>
> <Monday />
> <Tuesday />
> <Wednesday />
> <Thursday />
> <Friday />
> </DaysOfWeek>
> <WeeksInterval>1</WeeksInterval>
> </ScheduleByWeek>
> </CalendarTrigger>
> </Triggers>
> <Principals>
> <Principal id="Author">
> <UserId>Ruud_2007\Ruud</UserId>
> <LogonType>InteractiveToken</LogonType>
> <RunLevel>HighestAvailable</RunLevel>
> </Principal>
> </Principals>
> <Settings>
> <IdleSettings>
> <Duration>PT10M</Duration>
> <WaitTimeout>PT1H</WaitTimeout>
> <StopOnIdleEnd>false</StopOnIdleEnd>
> <RestartOnIdle>false</RestartOnIdle>
> </IdleSettings>
> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
> <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
> <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
> <AllowHardTerminate>true</AllowHardTerminate>
> <StartWhenAvailable>false</StartWhenAvailable>
> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
> <AllowStartOnDemand>true</AllowStartOnDemand>
> <Enabled>true</Enabled>
> <Hidden>false</Hidden>
> <RunOnlyIfIdle>false</RunOnlyIfIdle>
> <WakeToRun>true</WakeToRun>
> <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
> <Priority>7</Priority>
> </Settings>
> <Actions Context="Author">
> <Exec>
> <Command>C:\Stock\StockBrowser.exe</Command>
> <Arguments>/download=IDS /CLOSEAFTERDOWNLOAD</Arguments>
> </Exec>
> </Actions>
> </Task>
>
> ----------------------------
>
>
>
 
Re: task scheduler

Have you tried
....
<Sunday>false</Sunday>
<Monday>true</Monday>
....
--
Was this helpful? Then click the Ratings button. Voting helps the web
interface.
http://www.microsoft.com/wn3/locales/help/help_en-us.htm#RateAPostAsAnswer
Mark L. Ferguson
..

"Ruud Stam" <RuudStam@discussions.microsoft.com> wrote in message
news:47E86237-E5B1-4E89-B255-84CA3B5FE2F5@microsoft.com...
> Hi all,
>
> I have a problem with the task scheduler. I have a stockpicking program
> (stockbrowser) that i want to run every hour from 8:00 till 18:00 on
> weekdays... So I defined a task as listed below, but the darn thing won't
> stop at 18:00. It keeps on running every hour weekdays, weekend, night and
> day. Now I know that Vista has good stamina, but I hate it when I am
> playing
> a game and it is starting to run in the background :)
>
> Could somebody please tell me what i am doing wrong? You would be forever
> in
> my mind... well at least a day or so :)
>
> Thanks!!!
>
> <?xml version="1.0" encoding="UTF-16"?>
> <Task version="1.2"
> xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
> <RegistrationInfo>
> <Date>2008-02-18T11:39:25.081268</Date>
> <Author>Ruud_2007\Ruud</Author>
> </RegistrationInfo>
> <Triggers>
> <CalendarTrigger id="d78cdeed-0f1d-4ee6-bfb3-418c59f4f56d">
> <Repetition>
> <Interval>PT1H</Interval>
> <Duration>PT10H</Duration>
> <StopAtDurationEnd>true</StopAtDurationEnd>
> </Repetition>
> <StartBoundary>2008-02-18T08:36:45</StartBoundary>
> <Enabled>true</Enabled>
> <ScheduleByWeek>
> <DaysOfWeek>
> <Monday />
> <Tuesday />
> <Wednesday />
> <Thursday />
> <Friday />
> </DaysOfWeek>
> <WeeksInterval>1</WeeksInterval>
> </ScheduleByWeek>
> </CalendarTrigger>
> </Triggers>
> <Principals>
> <Principal id="Author">
> <UserId>Ruud_2007\Ruud</UserId>
> <LogonType>InteractiveToken</LogonType>
> <RunLevel>HighestAvailable</RunLevel>
> </Principal>
> </Principals>
> <Settings>
> <IdleSettings>
> <Duration>PT10M</Duration>
> <WaitTimeout>PT1H</WaitTimeout>
> <StopOnIdleEnd>false</StopOnIdleEnd>
> <RestartOnIdle>false</RestartOnIdle>
> </IdleSettings>
> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
> <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
> <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
> <AllowHardTerminate>true</AllowHardTerminate>
> <StartWhenAvailable>false</StartWhenAvailable>
> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
> <AllowStartOnDemand>true</AllowStartOnDemand>
> <Enabled>true</Enabled>
> <Hidden>false</Hidden>
> <RunOnlyIfIdle>false</RunOnlyIfIdle>
> <WakeToRun>true</WakeToRun>
> <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
> <Priority>7</Priority>
> </Settings>
> <Actions Context="Author">
> <Exec>
> <Command>C:\Stock\StockBrowser.exe</Command>
> <Arguments>/download=IDS /CLOSEAFTERDOWNLOAD</Arguments>
> </Exec>
> </Actions>
> </Task>
>
> ----------------------------
>
>
>
 
Re: task scheduler

I don''t think that will do the trick, because it is not stopping at night
either....

The darn thing just won''t stop :)

"Mark L. Ferguson" wrote:

> Have you tried
> ...
> <Sunday>false</Sunday>
> <Monday>true</Monday>
> ...
> --
> Was this helpful? Then click the Ratings button. Voting helps the web
> interface.
> http://www.microsoft.com/wn3/locales/help/help_en-us.htm#RateAPostAsAnswer
> Mark L. Ferguson
> .
>
> "Ruud Stam" <RuudStam@discussions.microsoft.com> wrote in message
> news:47E86237-E5B1-4E89-B255-84CA3B5FE2F5@microsoft.com...
> > Hi all,
> >
> > I have a problem with the task scheduler. I have a stockpicking program
> > (stockbrowser) that i want to run every hour from 8:00 till 18:00 on
> > weekdays... So I defined a task as listed below, but the darn thing won't
> > stop at 18:00. It keeps on running every hour weekdays, weekend, night and
> > day. Now I know that Vista has good stamina, but I hate it when I am
> > playing
> > a game and it is starting to run in the background :)
> >
> > Could somebody please tell me what i am doing wrong? You would be forever
> > in
> > my mind... well at least a day or so :)
> >
> > Thanks!!!
> >
> > <?xml version="1.0" encoding="UTF-16"?>
> > <Task version="1.2"
> > xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
> > <RegistrationInfo>
> > <Date>2008-02-18T11:39:25.081268</Date>
> > <Author>Ruud_2007\Ruud</Author>
> > </RegistrationInfo>
> > <Triggers>
> > <CalendarTrigger id="d78cdeed-0f1d-4ee6-bfb3-418c59f4f56d">
> > <Repetition>
> > <Interval>PT1H</Interval>
> > <Duration>PT10H</Duration>
> > <StopAtDurationEnd>true</StopAtDurationEnd>
> > </Repetition>
> > <StartBoundary>2008-02-18T08:36:45</StartBoundary>
> > <Enabled>true</Enabled>
> > <ScheduleByWeek>
> > <DaysOfWeek>
> > <Monday />
> > <Tuesday />
> > <Wednesday />
> > <Thursday />
> > <Friday />
> > </DaysOfWeek>
> > <WeeksInterval>1</WeeksInterval>
> > </ScheduleByWeek>
> > </CalendarTrigger>
> > </Triggers>
> > <Principals>
> > <Principal id="Author">
> > <UserId>Ruud_2007\Ruud</UserId>
> > <LogonType>InteractiveToken</LogonType>
> > <RunLevel>HighestAvailable</RunLevel>
> > </Principal>
> > </Principals>
> > <Settings>
> > <IdleSettings>
> > <Duration>PT10M</Duration>
> > <WaitTimeout>PT1H</WaitTimeout>
> > <StopOnIdleEnd>false</StopOnIdleEnd>
> > <RestartOnIdle>false</RestartOnIdle>
> > </IdleSettings>
> > <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
> > <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
> > <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
> > <AllowHardTerminate>true</AllowHardTerminate>
> > <StartWhenAvailable>false</StartWhenAvailable>
> > <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
> > <AllowStartOnDemand>true</AllowStartOnDemand>
> > <Enabled>true</Enabled>
> > <Hidden>false</Hidden>
> > <RunOnlyIfIdle>false</RunOnlyIfIdle>
> > <WakeToRun>true</WakeToRun>
> > <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
> > <Priority>7</Priority>
> > </Settings>
> > <Actions Context="Author">
> > <Exec>
> > <Command>C:\Stock\StockBrowser.exe</Command>
> > <Arguments>/download=IDS /CLOSEAFTERDOWNLOAD</Arguments>
> > </Exec>
> > </Actions>
> > </Task>
> >
> > ----------------------------
> >
> >
> >
 
Re: task scheduler

interesting idea... i just would have to make 10 (each hour) different
tasks....

I''ll give it a try

thanks!

"Mark" wrote:

> Unless someone else comes up with a solution you could make a separate task
> for each hour.
>
> Mark
>
> "Ruud Stam" <RuudStam@discussions.microsoft.com> wrote in message
> news:47E86237-E5B1-4E89-B255-84CA3B5FE2F5@microsoft.com...
> > Hi all,
> >
> > I have a problem with the task scheduler. I have a stockpicking program
> > (stockbrowser) that i want to run every hour from 8:00 till 18:00 on
> > weekdays... So I defined a task as listed below, but the darn thing won't
> > stop at 18:00. It keeps on running every hour weekdays, weekend, night and
> > day. Now I know that Vista has good stamina, but I hate it when I am
> > playing
> > a game and it is starting to run in the background :)
> >
> > Could somebody please tell me what i am doing wrong? You would be forever
> > in
> > my mind... well at least a day or so :)
> >
> > Thanks!!!
> >
> > <?xml version="1.0" encoding="UTF-16"?>
> > <Task version="1.2"
> > xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
> > <RegistrationInfo>
> > <Date>2008-02-18T11:39:25.081268</Date>
> > <Author>Ruud_2007\Ruud</Author>
> > </RegistrationInfo>
> > <Triggers>
> > <CalendarTrigger id="d78cdeed-0f1d-4ee6-bfb3-418c59f4f56d">
> > <Repetition>
> > <Interval>PT1H</Interval>
> > <Duration>PT10H</Duration>
> > <StopAtDurationEnd>true</StopAtDurationEnd>
> > </Repetition>
> > <StartBoundary>2008-02-18T08:36:45</StartBoundary>
> > <Enabled>true</Enabled>
> > <ScheduleByWeek>
> > <DaysOfWeek>
> > <Monday />
> > <Tuesday />
> > <Wednesday />
> > <Thursday />
> > <Friday />
> > </DaysOfWeek>
> > <WeeksInterval>1</WeeksInterval>
> > </ScheduleByWeek>
> > </CalendarTrigger>
> > </Triggers>
> > <Principals>
> > <Principal id="Author">
> > <UserId>Ruud_2007\Ruud</UserId>
> > <LogonType>InteractiveToken</LogonType>
> > <RunLevel>HighestAvailable</RunLevel>
> > </Principal>
> > </Principals>
> > <Settings>
> > <IdleSettings>
> > <Duration>PT10M</Duration>
> > <WaitTimeout>PT1H</WaitTimeout>
> > <StopOnIdleEnd>false</StopOnIdleEnd>
> > <RestartOnIdle>false</RestartOnIdle>
> > </IdleSettings>
> > <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
> > <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
> > <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
> > <AllowHardTerminate>true</AllowHardTerminate>
> > <StartWhenAvailable>false</StartWhenAvailable>
> > <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
> > <AllowStartOnDemand>true</AllowStartOnDemand>
> > <Enabled>true</Enabled>
> > <Hidden>false</Hidden>
> > <RunOnlyIfIdle>false</RunOnlyIfIdle>
> > <WakeToRun>true</WakeToRun>
> > <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
> > <Priority>7</Priority>
> > </Settings>
> > <Actions Context="Author">
> > <Exec>
> > <Command>C:\Stock\StockBrowser.exe</Command>
> > <Arguments>/download=IDS /CLOSEAFTERDOWNLOAD</Arguments>
> > </Exec>
> > </Actions>
> > </Task>
> >
> > ----------------------------
> >
> >
> >

>
>
>
 
Back
Top