Thanks for the reply.
It is set to go into standby after 2 hours. But it seems to go right back to
sleep after spawning the task. My executable writes informational messages to
the event log and I see it writing messages for about 30 seconds to a minute,
then nothing. I'm assuming that is when the machine goes back into standby.
I will double-check this tonight, though, and change the power scheme to
just leave the machine on all night and see what happens.
I can't find any other settings in the task's properties other than what I
stated in my original post. If there's some "hidden" ones, I'm dying to find
out.
I'll update this thread tomorrow with the results.
Thanks again.
"cquirke (MVP Windows shell/user)" wrote:
> On Sat, 17 Mar 2007 07:10:10 -0700, Pete Furtado <Pete
> > wrote:
>
> >I have a task to run an executable. I have it set to run whether the user is
> >logged in or not, run with the highest privileges, wake the computer to run
> >this task, stop the task if it runs longer than 8 hours. It runs at 1am. The
> >task wakes the computer up at 1am fine, starts the executable, then puts the
> >computer back to sleep without waiting for the executable (a VS2005 SP1 C#
> >program I created) to complete. When I wake the computer in the morning, the
> >executable resumes.
>
> >What is up with this? Why can't the task scheduler wait until the task it
> >spawned finishes? My vista installation was an upgrade from XP Pro. But I
> >created the task (several times) from scratch in Vista. I also recompiled the
> >executable in Vista.
>
> Is the PC set to "suspend" after some time of inactivity?
>
> If so, turn that off - as that may cut in just because there's no
> keyboard or mouse activity going on.
>
> Are there any settings within the Task's properties to control this
> sort of behavior?
>
>
>
> >--------------- ---- --- -- - - - -
> Saws are too hard to use.
> Be easier to use!
> >--------------- ---- --- -- - - - -
>