How to use CCleaner handwritten computer junk file cleanup rules

Source: Internet
Author: User
Tags valid browser cache thunderbird mail

computers have been slow for a long time, and we can clean up slow computers in addition to the hassle of reloading the system. CCleaner is such a quick way to clean up the system garbage software, because it is a Chinese version, many rules do not apply to domestic software cleanup, but if you know the CCleaner cleaning rules, you can write their own rules to clean up the system garbage, such customization is certainly more suitable for your computer. CCleaner small and sensitive, can quickly clean up the system garbage, so popular! But its default cleaning rules for the domestic common software support less, and in security considerations, but also more conservative, so you can write your own set of rules to suit your own system, so that ccleaner more suitable for you!

First, rule entry format

[name*]

langsecref=

detect/detectfile=

default=

filekeyx/regkeyx=

excludekeyx=

*warning=

Second, the specific parameter description

1. [Name*] Entry name

The name of the custom entry, usually preceded by the name "*" and other symbols to differentiate. This section name appears in the list window under the Applications tab on the right side of the CCleaner button icon in the main interface of the program.

2. Langsecref= Program category

This entry specifies the category of the application that the custom entry appears in CCleaner, in the following categories:

3021 = Application

3022 = Internet

3023 = Multimedia

3024 = Utility

3025 = Windows System Related

3026 = Firefox/mozilla Browser

3027 = Opera Browser

3028 = Safari Browser

3029 = Google Chrome Browser

3030 = Thunderbird mail client

3. Detect/detectfile= Detection Target

This part of the parameter is used to instruct CCleaner to check for the existence of a software program file or registry entry related to a custom item, if so, to display the relevant entry, or vice versa. For example: detectfile=%windir%, "Yes" is returned in Windows system because it points to the Windows folder in your computer.

If you need to detect more than one target, you can Detect or detectfile after adding the serial number, such as: Detect1, Detect2 、......, DetectFile1, DetectFile2 ... (number 1 can be omitted). You can add many entries, but the sequence number must be incremented from 1 (1 can be omitted) and cannot be duplicated.

System-Contracted PATH environment variables (see below)

Compared to absolute paths (e.g. C:), it is more convenient, more efficient and more versatile.

Detect= pointing to the registry key value

Detectfile= points to a file or folder.

Available Detect paths:

HKLM = HKEY_LOCAL_MACHINE

HKU = HKEY_USERS

HKCU = HKEY_CURRENT_USER

Available DetectFile paths: (Note: The following default C: for system partitioning)

%appdata%

Windows xp:c:documents and Settings{username}application Data

Windows VISTA/7: c:users{username}appdataroaming

%commonappdata%

Windows xp:c:documents and Settingsall usersapplication Data

Windows VISTA/7: C:programdata

%commonprogramfiles%

C:Program FilesCommon Files

C:Program files (x86) Common files

This path is valid for both 32-bit and 64-bit directories, and CCleaner is automatically detected.

%homedrive%

C:

%LocalAppData%

Windows xp:c:documents and settings{user name}local settingsapplication Data

Windows VISTA/7: c:users{user name}appdatalocal

%ProgramFiles%

C:Program Files

C:Program Files (x86)

This path is valid for both 32-bit and 64-bit directories, and CCleaner is automatically detected.

%systemdrive%

C:

%UserProfile%

Windows XP:%systemdrive%documents and settings{user name}

Windows VISTA/7:%systemdrive%users{user Name}

%WinDir%

C:windows

4. Default=false Default Settings

The default setting is False (false), because the default parameter specifies a check box's defaults (false = unchecked).

This is set to ensure that the relevant entry is not selected and the cleanup is performed before the user is selected.

5. filekeyx/regkeyx= File path

Where X is the ordinal of the entry. You can add many entries, but the sequence number must be incremented from 1 and cannot be duplicated. (Example: FileKey1, FileKey2, and more)

Filekey and RegKey Specify the path where you want to delete the item. You must list the path information (you can use the PATH environment variable described above) and then use the pipe symbol (|) and attach a file name or registry key value.

For example:

filekey1=%appdata%ccleaner|*.*– This will delete all files in the specified folder (here CCleaner, below)

filekey2=%localappdata%ccleaner|*.log– This will delete all log files in the specified folder

filekey3=%appdata%ccleaner| Ccleaner.log| recurse– This will delete all log files named CCleaner in the specified folder and its subfolders.

Filekey4=%localappdata%ccleanertemp|*.*| removeself– This will delete all files and folders in the specified folder itself.

Description

| – Pipe symbol for separating the file identification options.

*.*– represents all files in the specified folder.

recurse– Delete Subfolders and all content.

removeself– is the same as RECURSE, but it also deletes the specified folder itself.

* Delete files with the same extension (*.example), or all files with the same file name (example.*).

6. Excludekeyx = [Type (PATH, FILE, or REG)] | [Path] | [FileName or registry key value or file type] (Note the middle pipe symbol "|")

Where X is the ordinal of the entry. You can add many entries, but the sequence number must be incremented from 1 and cannot be duplicated. (ex: ExcludeKey1, ExcludeKey2 and more)

The type must be one of the paths (folders that need to be excluded), file (specific files that need to be excluded), or Reg (the registry key to be excluded). You must specify the path, path, and file name or registry key value, depending on the type of content you want to exclude.

You can only use the file switch to exclude a single file. To exclude multiple files with related types, use the PATH switch and specify the extension (for example: *.txt). If you need to exclude several different types of files, create a different Excludekey entry for each type of file.

Example 1:

Excludekey1=path|%windir%system32logfilesscm|*-*-*-*.*

This excludes all log files in the SYSTEM32LOGFILESSCM subfolder that have *-*-*-*.* mode in the user's Windows directory.

Example 2:

Excludekey2=file|%windir%system32logfiles|myfile.txt

This excludes the myfile.txt files in the System32logfiles subfolder of the user's Windows directory.

Example 3:

Excludekey3=reg| Hkcusoftwarepiriform

This excludes all key values (and their subkeys) under the registry key Hkcusoftwarepiriform

Example 4:

excludekey4=path| C:temp|*.*

This excludes all files in the C:temp folder and its underlying folders.

Example 5:

excludekey5=path| C:windows|*.exe;*.bat

This excludes files from the. exe and. bat types in the C:windows folder.

Note: Excludex (instead of Excludekeyx) is a variable that represents a user setting in the exclusion panel on the right side of the CCleaner main program options icon. When you set the settings to save as INI file, Excludex will appear in the Ccleaner.ini file. Please do not modify the contents of Excludex and Includex.

7. Warning= warning message

If you define certain entries that should alert the end user to special attention, such as when it comes to resetting the number of times a particular multimedia player plays or scoring records in a game, add a warning message after warning=.

For example:

warning= This will delete all of your high score records in this game.

This warning message will help the end user to confirm before performing the delete operation.

III. Special Notices

Keep in mind that before you publish the rules, be sure to test them to make sure they do not harm the program's normal operation. Also, for security reasons, you need to test in multiple operating system environments.

Iv. partial rules for collation

[360 Security defender Update Cache *]

langsecref=3024

Detect=hkcusoftware360safe

Default=false

filekey1=%programfiles%360360safeupdate|*.tmp| RECURSE

[360 Security Defender Bug Fix *]

langsecref=3024

Detect=hkcusoftware360safe

Default=false

Filekey1=%programfiles%360360safehotfix|*.*| RECURSE

[360 Speed Browser Cache *]

langsecref=3029

Default=false

Detectfile=%localappdata%360chromechromeapplication360chrome.exe

Detectfile2=%programfiles%360chromechromeapplication360chrome.exe

Filekey1=%localappdata%360chromechromeuser datadefaultcache|*.*| RECURSE

Filekey2=%localappdata%360chromechromeuser datadefaultcacheiecontent.ie5|*.*| RECURSE

Filekey3=%localappdata%360chromechromeuser datatemp|*.*| RECURSE

[360 Speed Browser upgrade Package *]

langsecref=3029

Detectfile=%localappdata%360chromechromeapplication360chrome.exe

Default=false

filekey1=%localappdata%360chromechromeapplication*installer|chrome.7z| RECURSE

filekey2=%programfiles%360chromechromeapplication*installer|chrome.7z| RECURSE

[Adobe Air log file *]

langsecref=3023

Detectfile=%localappdata%adobeairlogs

Default=false

Filekey1=%localappdata%adobeairlogs|*.log

[Adobe Reader Cache *]

langsecref=3021

Detectfile=%localappdata%adobeacrobat

Default=false

filekey1=%localappdata%adobeacrobat*cache|*. chs| RECURSE

Filekey2=%localappdata%adobeacrobat*cache|*.lst| RECURSE

[Apple Software update package *]

langsecref=3024

Detectfile=%allusersprofile%appleinstaller Cache

Detectfile2=%allusersprofile%apple Computerinstaller Cache

Default=false

Filekey1=%allusersprofile%appleinstaller Cache|*.*

Filekey2=%allusersprofile%apple Computerinstaller Cache|*.*

[Chrome Browser Upgrade Package *]

langsecref=3029

Detectfile=%localappdata%googlechromeapplicationchrome.exe

Default=false

filekey1=%localappdata%googlechromeapplication*installer|chrome.7z| RECURSE

[Chromeplus Browser Cache *]

langsecref=3029

Default=false

Detectfile=%appdata%chromepluschrome.exe

Detectfile2=%programfiles%chromepluschrome.exe

Filekey1=%appdata%chromeplususer datadefaultcache|*.*| RECURSE

filekey2=%programfiles%*chromeplususerdatadefaultcache|*| RECURSE

Filekey3=%programfiles%*chromeplususerdatadefaultmedia cache|*| RECURSE

[Chromium Browser Cache *]

langsecref=3029

Default=false

Detectfile=%localappdata%chromiumapplicationchrome.exe

Filekey1=%localappdata%chromiumuser datadefaultcache|*.*| RECURSE

[Chromium Browser Upgrade Package *]

langsecref=3021

Detectfile=%localappdata%chromiumapplicationchrome.exe

Default=false

filekey1=%localappdata%chromiumapplication*installer|chrome.7z| RECURSE

[COMODO Dragon Browser Cache *]

langsecref=3029

Default=false

Detectfile=%programfiles%comododragondragon.exe

Detectfile2=%localappdata%comododragondragon.exe

Filekey1=%localappdata%comododragonuser datadefaultcache|*.*| RECURSE

[Daemon tools*]

langsecref=3021

Detectfile=%appdata%daemon Tools Liteiconscache

Default=false

Filekey1=%appdata%daemon Tools Liteiconscache|*.*

[Evernote log file *]

langsecref=3021

Detect=hkcusoftwareevernote

Default=false

Filekey1=%localappdata%evernoteevernotelogs|*.txt| RECURSE

[Flash Player Cache *]

langsecref=3023

Detectfile=%appdata%macromediaflash Player

Default=false

Filekey1=%appdata%macromediaflash player|*.*| RECURSE

Related Article

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.