B
bryan
I've a scheduled task that runs a bat file at 23:30 every day. The bat
file contains the following:
perl D:\ExtractPrices.pl
exit
This works fine until I change it to include shutdown.exe so that it
now looks like:
perl D:\ExtractPrices.pl
C:\WINDOWS\system32\shutdown.exe -s -t 15
exit
Now the task executes soon after I boot up the PC and promptly shuts
it down again. Not a lot of use.
Anyone got any ideas why it's doing this?
Surely Windows is unaware of the contents of the bat file until it
comes to execute it at the scheduled time.
file contains the following:
perl D:\ExtractPrices.pl
exit
This works fine until I change it to include shutdown.exe so that it
now looks like:
perl D:\ExtractPrices.pl
C:\WINDOWS\system32\shutdown.exe -s -t 15
exit
Now the task executes soon after I boot up the PC and promptly shuts
it down again. Not a lot of use.
Anyone got any ideas why it's doing this?
Surely Windows is unaware of the contents of the bat file until it
comes to execute it at the scheduled time.