Jump to content

Clean jsut by clicking icon


shieber

Recommended Posts

Is there a way to have CCleaner do a cleaning without having to open the program and then click on the "Run Cleaner" button? I mean, like jsut click the desktop icon and it opens itself, runs the cleaner, and closes?

Link to comment
Share on other sites

  • Moderators

CCleaner has 2 command-line parameters:

 

/AUTO - Runs the cleaner upon loading and then closes the application.

 

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:

 

Run CCleaner.

Click Options->Settings, then tick:

Run CCleaner when the computer starts

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):

 

Navigate to:

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

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

/DEBUG - Runs the program in debug mode, only recommended for advanced users.

 

The command-line parameters can be useful if you don't want to hit the Close/Exit every time, or if you are having a problem, and need to find out what is crashing CCleaner.

 

To do this, Right Click on the CCleaner shortcut, and then click on Properties. In Target, you should see something like this: "C:\Program Files\CCleaner\CCleaner.exe". Just add the command-line parameter at the end, it should look something like this:

"C:\Program Files\CCleaner\CCleaner.exe" /AUTO

Your Friendly Neighborhood Piriform Forum Moderator

Quick Links: CCleaner Products | CCleaner Documentation | Knowledge Center | Downloads | Lost License Key

Link to comment
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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.