How to enable the CCleaner AUTO parameter

Guide: How to enable the CCleaner /AUTO parameter

_________________________________________________

Note:

The below information is now included in the CCleaner Beginner's Guide in section "Command-line Parameters" (thanks TwistedMetal).

_________________________________________________

FAQ

Q: What is the CCleaner /AUTO parameter?

A: It allows CCleaner to automatically clean your pre-selected items that are within the large Cleaner button.

Q: Why doesn't the CCleaner GUI appear when using the /AUTO parameter?

A: The GUI doesn't appear because CCleaner runs hidden in the background to clean your pre-selected items.

Q: Does this also automatically clean the Issues?

A: No. Issues ("broken shortcuts, and registry cleaner") must be ran separately for obvious safety reasons.

_________________________________________________

The CCleaner /AUTO parameter can be used in and with:

  • Batch files (.bat).
  • Shortcuts/links such as; making one on the desktop named CCleaner (Auto).
  • Via the Windows Task Scheduler.
  • From within CCleaner itself which will allow it to run at every system startup and/or logon.

This is the parameter to use in shortcuts, batch files, or in Task Scheduler (including the quotes) (three examples included):

  • "C:\Program Files\CCleaner\CCleaner.exe" /AUTO
  • "%ProgramFiles%\CCleaner\CCleaner.exe" /AUTO
  • "C:\Progra~1\CCleaner\CCleaner.exe" /AUTO

To make it run at every system startup do the following:

  1. Run CCleaner.
  2. Click Options->Settings, then tick:

    Run CCleaner when the computer starts

  3. Done, you can now close CCleaner.

    Note: This will only clean the User Profile it was enabled on.

To automatically clean All User Profiles on Windows XP (when each individual user logs onto their user profile):

  1. Navigate to:

    C:\Documents and Settings\All Users\Start Menu\Programs\Startup

  2. Right click and create a New Shortcut and input one of the three example parameters listed above.

_________________________________________________

Since the question comes up every now and then how to make CCleaner run on shutdown I've created a batch file that allows this to happen. Note: The batch file to my knowledge will only work with Microsoft Windows XP, it wasn't tested on any other version of Windows however you can probably easily adapt/edit it to work with other Windows versions.

The download is CCleaner_Auto_Shutdown.zip and is available for download in the link listed below. The file was scanned for any virus infection before being uploaded to the CCleaner forums using Avira AntiVir PersonalEdition Classic, and ClamWin Free Antivirus.

Download:

This needs to be pinned or added to the Beginners' Guide. Like I said before, the Beginner's Guide really needs to be updated.

This needs to be pinned or added to the Beginners' Guide. Like I said before, the Beginner's Guide really needs to be updated.

It's nearly a year old now. Some of it's outdated =/

could this be updated and pinned?

i didnt even know it existed!

i didnt even know it existed!

Andavari has all sorts of things in his sig which are really helpful.

I didn't even know this existed. I will see what I can do. ;)

I didn't even know this existed. I will see what I can do. ;)

need to be pinned :blink:

Yes, STILL!

Can't a MOD pin it?

Yes, STILL!

Can't a MOD pin it?

Look at the first post in this thread and the note from Twisted Metal.

Look at the first post in this thread and the note from Twisted Metal.

Ah, thanks!

Never knew that was in there!

I guess I should read through the beginners guide again!

I updated the Note in the first post to reveal where the info is included in the Beginner's Guide.

Thanks for the post and i found it very informative.

---

sathyan

Thanks for the post and i found it very informative.

This thread is outdated!

Please see instead:

* http://docs.piriform.com/

* http://forum.piriform.com/index.php?showtopic=16551