Re: Scheduled tasks and shutdown.exe

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




<bryan@xxxxxxxxxxxxx> wrote in message
news:45ed81f9-882b-40c3-99b8-7dbf7b494320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I suspect that perl.exe executes in an independent process
and returns control to the batch file immediately, even while
it is still executing. You can easily check this: Execute the
command "perl D:\ExtractPrices.pl" from a Command Prompt.
Can you enter new commands while the Perl script executes?
There is your answer!

No. shutdown.exe doesn't run until the perl program completes.

This still wouldn't explain why this scheduled task, consisting of a
bat file, runs every time windows starts (and consequently shutsdown)
when the shutdown.exe is present in the bat file but only when
scheduled when it isn't. I'm baffled.

I am equally baffled by your statement "[It] runs every time windows
starts (and consequently shutsdown) when the shutdown.exe is present
in the bat file but only when scheduled when it isn't."

I read this phrase four times before giving up due to a severe
risk of my brain going into a loop without exit. Can you split
this up so that my simple mind can figure out what you mean?


.



Relevant Pages

  • Re: Scheduled tasks and shutdown.exe
    ... it is still executing. ... command "perl D:\ExtractPrices.pl" from a Command Prompt. ... Can you enter new commands while the Perl script executes? ... bat file, runs every time windows starts ...
    (microsoft.public.windowsxp.general)
  • backtick redirection question
    ... Using an extremely old version of perl: ... Developed by ActiveWare Internet Corp., ... Instead of executing ... This results in a different command ...
    (comp.lang.perl.misc)
  • RE: Please Help!!! Newbie question
    ... > I am new to perl so I need some help from the list with this script. ... > It takes a value from command line and then returns afters processing. ... How are you executing the script? ...
    (perl.beginners)
  • Re: perl and db-module
    ... when executing 'perl -V'? ... look at the output of 'perl -V' again. ... (maybe freeBSD uses a different command other than export - sorry ... Chris ...
    (comp.lang.perl.misc)
  • Re: Problems installing XP SP2!
    ... package source directory and make sure the that XPSPS2sms.exe file exists in ... in your SMS Program command line property. ... > Executing program as a script ... > OnOptionalExecutionRequests failed for program Automated upgrade from XP ...
    (microsoft.public.sms.admin)