Re: Task Scheduler Fails, But Not All the Time
- From: "Dennis Q. Wilson" <DennisQWilson@xxxxxxxxx>
- Date: 18 Apr 2006 23:41:37 -0700
Pegasus (MVP) wrote:
"Dennis Q. Wilson" <DennisQWilson@xxxxxxxxx> wrote in message
news:1145375512.313090.28040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm running a clean install of Windows XP Pro with Service Pack 2, and
I wish to use Task Scheduler to run a certain program at various times
each week (an ATI Multimedia Center video capture, for what it's
worth).
Most tasks complete just fine, but not all -- some never start. When I
check the "Scheduled Tasks" folder following such a failure, what I
invariably find is that the "Next Run Time" pertaining to the failed
tasks has mysteriously jumped many days ahead.
For example, if a program is scheduled to run every Wednesday at 8 p.m
beginning April 12, I might check it the next morning to find that, not
only did it not happen, but now the "Next Run Time" isn't set to April
19, but something like April 23, which is MORE than seven days ahead,
and isn't even a Wednesday!
To the best of my ability to double-check, the task properties have
been set correctly. And as I said, this only happens with SOME of the
scheduled video captures -- the rest execute as, well, scheduled.
Does anyone know what might be happening here?
Before ***assuming*** that the task never starts, ***prove***
it beyond doubt that it does not, by embedding your command
into the batch file below, then scheduling that batch file:
@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
c:\Tools\YourTask.exe 1>>c:\test.log 2>c:\test.err
echo ErrorLevel of c:\Tools\YourTask.exe=%ErrorLevel% >> c:\test.log
echo %date% %time% End of task >> c:\test.log
Now examine the two log files. I suspect they will show
that the task DID start but that it failed for some perfectly
good reason.
Do remember that I said, "Most tasks complete just fine, but not all --
some never start." That being the case, I created ***several*** of
those batch files and scheduled them to run at different times, because
just trying it once wouldn't ***prove*** much.
Five times the batch files executed properly; twice, not at all, and
with no log files produced. And again in the case of the two failed
trials, the Start Time mysteriously jumped nine days ahead.
.
- Follow-Ups:
- Re: Task Scheduler Fails, But Not All the Time
- From: Pegasus \(MVP\)
- Re: Task Scheduler Fails, But Not All the Time
- References:
- Task Scheduler Fails, But Not All the Time
- From: Dennis Q. Wilson
- Re: Task Scheduler Fails, But Not All the Time
- From: Pegasus \(MVP\)
- Task Scheduler Fails, But Not All the Time
- Prev by Date: Re: cannot update windows xp
- Next by Date: RE: system process causing spdif output hiccup
- Previous by thread: Re: Task Scheduler Fails, But Not All the Time
- Next by thread: Re: Task Scheduler Fails, But Not All the Time
- Index(es):
Relevant Pages
|