Autorun on Shutdown

Speaking to several users here at work and they all enjoy the autorun on startup function.

Could you add the option to autorun on shutdown?

We were concerned that if someone started the PCs in safemode the autorun on startup would be avoided.

Welcome to the CCleaner Forums Tafod! :)

On Windows XP it can currently be done via a batch file (.bat) as follows:

  1. Open Notepad and copy+paste in the following blue coloured text:

    @echo off

    “C:\Program Files\CCleaner\ccleaner.exe” /AUTO

    shutdown -s -t 30 -c “Windows will shutdown shortly”

    echo.

    echo To abort the Windows shutdown press any key

    echo on the keyboard before the shutdown timer expires,

    echo otherwise don’t press any keyboard buttons.

    echo.

    pause

    shutdown -a

    cls

    exit

  2. Save this document to the Desktop as the following name, just an example (including the quotes):

    “CCleaner Auto Shutdown.bat”

    Tip:

    You can cancel the shutdown by switching to the command prompt window in the background to make it become active, and then press any key on the keyboard. This I put in to allow for the cancellation in case the file is accidentally launched (it happens).

Edit:

Since this question gets asked enough I've made the batch file for anyone who needs it. It's all pre-made and only needs to be unzipped, it's however currently only available for Windows XP. It's located at the bottom of the first post located here.

Thanks for the advice.

There are several people in the office here in London who'll be adding this to their systems tomorrow morning.

Regards

Tafod

Thanks for the advice.

Glad to be of help! :)