task scheduler

R

Ruud Stam

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>

----------------------------
 
M

Mark

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

Mark
 
R

Ruud Stam

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

The darn thing just won''t stop :)
 
R

Ruud Stam

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

I''ll give it a try

thanks!

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

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top