What is this batch file going to do exactly?
If it doesn't get a chance to run before your computer forces a shutdown it won't do you good. Is this a temp file cleaner script or?
I know how to program an executable to intercept the windows message for a shutdown to postpone it for a set wait time, and run a script. But i've never needed it as I don't like my shutdown process taking up extra time, and I don't need to clean files on every shutdown from temp /prefetch / etc.. folders.
Running CCleaner works fine for me when I use it manually.
But i'm going to need some more information before I can help you here.
---------------------------------------------------------------------------------------------------
I believe you can change the shutdown script command through the root console.
• {Windows Key} + R to open the Run command
• Type in "mmc" and press enter
• File > Add/Remove Snapin
• Choose Group Policy
• Choose default local computer
• Local Computer Policy - Computer Config > Windows Settings > Scripts > Shutdown
• Point it to the location of your batch script file.
---------------------------------------------------------------------------------------------------
I know the above method works, but for you since you have Home Basic, i'd suggest creating a batch file that calls to shutdown.exe after you run the contents of your regular/original batch script. Place it on your desktop, and use it instead of the Start> Shutdown method.
Last edited by Ace; 07-10-2011 at 09:57 AM..
|