Jump to content
CCleaner Community Forums
Sign in to follow this  
Tafod

Autorun on Shutdown

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×