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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...