CCleaner command-line parameters

Source: Internet
Author: User

Very useful command, which can be used to write software by yourself

Very good

You can use command-line parameters to change cCleaner's installation behavior, or to change how cCleaner runs.

Command-line parameters for cCleaner instils

There are three parameters you can use when installing cCleaner, as follows. You can use them in batch files to automate cCleaner installations.

Parameter explanation example
Ccsetup.exe/s this performs a silent install of cCleaner with default options. ccsetup.exe/s
Ccsetup.exe/D = <pathname> This installccleaner into a different folder than the default. ccsetup.exe/D = c: \ directory
(In this example, cCleaner wocould be installed in the C: \ directory folder .)
Ccsetup.exe/L = <locale> This installccleaner with a language file identified by the locale ID.
For a list of locale IDs, see http://support.microsoft.com/kb/221435. For a list of cCleaner's supported versions, see this topic. ccsetup.exe/L = 1036
(In this example, cCleaner wocould be installed in French .)

Note: You can use multiple parameters by including them on the same line. For example,
Ccsetup.exe/S/D = c: \ cCleaner/L = 1031

 

Wocould install cCleaner silently in German to the C: \ cCleaner folder.

Command-line parameters for cCleaner operation

There are three parameters you can use when running cCleaner, as follows. you can use them in batch files, scripting, shortcuts, or the task schedto to automate cCleaner operation. for example, you can set cCleaner to run automatically every day at AM.

Parameter explanation
Ccleaner.exe/auto cCleaner runs silently and automatically, using the current set of saved options to clean the PC. cCleaner then exits.
Ccleaner.exe/auto/shutdown cCleaner runs silently and automatically, using the current set of saved options to clean the PC. Windows then shuts down automatically ..
Note: you cannot run/shutdown by itself. It must be preceded by/auto.
Ccleaner.exe/export cCleaner exports the cleaning rules to the INI files. three INI files will be created in the cCleaner's installation folder-winapp. INI, winreg. INI and winsys. ini. they contain cleaning rules for the Application Section, registry cleaner and the Windows section respectively.

Ccleaner.exe/Delete "path_to_file (s)"/method "0-3"
CCleaner silently performs secure deletion for folders/Files specified.

You can specify multiple files/folders separating them with the "|" character.

Example: ccleaner.exe/Delete "D: \ temp \ sdelete *. * | D: \ temp \ sdelete *. log | D: \ temp \ sdelete *. TXT | D: \ temp \ sdelete \ test.bmp"

The method parameter defines the secure deletion type:

0-1 pass
1-3 passes
2-7 passes
3-35 passes

Note: you cannot use/method by itself. It must be preceded by/Delete.

 


Note: When you run ccleaner.exe using the/auto parameter, cCleaner does not run the Registry cleaner. You cannot currently run the Registry cleaner through a command-line parameter

Command-line parameters for cCleaner operation pane focus


CCleaner has four 'panes': cleaner, registry, tools, and options. When the program is open, you can access each pane by clicking the associated icon/button at left.

If you are launching cCleaner from a command line, you can now have it open on a particle pane by specifying one of the following command-line switches:
/Cleaner
/Registry
/Tools
/Options

If cCleaner is already open, it will display the appropriate pane. if you have more than one instance of cCleaner running, the command-line switch will only affect the topmost (if open) or left-most (if minimized) instance.

Note: cCleaner will only recognize the first pane-related command-line switch.

Command-line parameters for cCleaner business and technician Edition


CCleaner Business Edition and technician edition allow the user to perform several additional command line operations. You can use them in batch files, scripting, shortcuts, or the task schedto to automate cCleaner operation.

Parameter explanation example
Analyze ["log_filename.txt"]
Analyses using the rules defined in cCleaner. ini and puts the results in log_filename.txt
Ccleaner.exe/analyze "log.txt"

Clean ["log_filename.txt"]
Cleans using the rules defined in cCleaner. ini and puts the results in log_filename.txt
Ccleaner.exe/clean "log.txt"

Update
Performs an immediate silent update.
Ccleaner.exe/update

Note: If you are using a 64-bit system, simply substitute ccleaner.exe with ccleaner64.exe for the above commands.

CCleaner command-line parameters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.