ccleaner Command-line parameters

很有用的command ,自己写软件可以用到了

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 installs

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 installs CCleaner into a different folder than the default. ccsetup.exe /D=C:\Directory
(In this example, CCleaner would be installed in the C:\Directory folder.)
ccsetup.exe /L=<locale> This installs CCleaner 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 languages, see this topic. ccsetup.exe /L=1036
(In this example, CCleaner would 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

would 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 Scheduler to automate CCleaner operation. For example, you could set CCleaner to run automatically every day at 3:00am.

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 particular 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 Scheduler 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.

时间: 2024-10-13 20:24:25

ccleaner Command-line parameters的相关文章

logoff remote desktop sessions via command line tools

This trick I learned from my one of ex-college.  In Windows servers, only two remote desktop sessions allowed with administrative access. There are situations, you can't connect to the server via remote desktop because of two sessions already active.

An A-Z Index of the Apple OS X command line

来源:http://ss64.com/osx/ An A-Z Index of the Apple OS X command line alias Create an alias • alloc List used and free memory apropos Search the whatis database for strings asr Apple Software Restore awk Find and Replace text within file(s) b basename

[Node.js] Pass command line arguments to node.js

Command line arguments are often used to modify the behavior of an application or specify needed parameters for operation. In this lesson, you will learn how to access the command line arguments passed to your node.js application as well as different

C++: Command Line Processing

Save this code here for studying and using it. Surce code is here. CmdLine.h File #pragma once #include "unicodemacro.h" #include <vector> #include <map> namespace Utility { // handy little container for our argument vector struct Cm

caffe command line

Command Line The command line interface – cmdcaffe – is the caffe tool for model training, scoring, and diagnostics. Run caffe without any arguments for help. This tool and others are found in caffe/build/tools. (The following example calls require c

An annotation based command line parser

JCommander star1000+ This is an annotation based parameter parsing framework for Java 8. The full doc is available at http://jcommander.org. Java port of Python's famous argparse command-line argument parser. https://argparse4j.github.io/ Argparse4j

msiexec command line arguments

Documented command line arguments Type MSIEXEC /? and you'll get the following on-screen help: Windows ® Installer. V 5.0.7601.17514 msiexec /Option <Required Parameter> [Optional Parameter] Install Options </package | /i> <Product.msi>

【413】C 语言 Command line

Command-Line Arguments All the executable programs above have a main(void) program more generally, executables take arguments on the command line these enter the program via parameters 切换行号显示 1 int main(int argc, char *argv[]) For example: prompt$ ./

Can&#39;t use Subversion command line client: svn

使用Intellij IDEA的svn时提示出错:Can't use Subversion command line client: svn. 当我在使用svn,Checkout一个项目后,然后将其导入到Intellij idea中,出现这样的报错!经过google后,发现了问题,我的问题是:我安装的TortoiseSVN工具,本身是带有command-line功能的(我没有安装)如图: 所以报这个错误.如果安装的TortoiseSVN工具,本身是不带有command-line功能的,必须要安装

解决MySQL5.6 Warning: Using a password on the command line interface can be insecure

MySQL5.6在使用名文的密码登陆时,会出现:Warning: Using a password on the command line interface can be insecure 当然这样对于平常的登陆会无所谓,如果在脚本里使用使用的话,就会有问题: 解决这种问题的方法是需要在my.cnf中配置即可: 在my.cnf中加入如下配置 [mysqladump] user=my_name password=my_pass 重启MySQL 即可 以后再使用mysqldump命令就不需要加上任