博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ccleaner Command-line parameters
阅读量:4635 次
发布时间:2019-06-09

本文共 4414 字,大约阅读时间需要 14 分钟。

很有用的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.

转载于:https://www.cnblogs.com/sophieqd/p/3960243.html

你可能感兴趣的文章
第一次软件工程作业(改进版)
查看>>
WPF的图片操作效果(一):RenderTransform
查看>>
网络流24题-飞行员配对方案问题
查看>>
Jenkins 2.16.3默认没有Launch agent via Java Web Start,如何配置使用
查看>>
Excel的数据分析—排位与百分比
查看>>
讯飞语音识别Android-Demo
查看>>
引入css的四种方式
查看>>
Mysql蠕虫复制
查看>>
centos7+ansible自动化工具使用
查看>>
iOS开发UI篇—transframe属性(形变)
查看>>
3月7日 ArrayList集合
查看>>
正则替换
查看>>
jsp 环境配置记录
查看>>
本地视频播放黑屏,有声音
查看>>
Python3-Cookbook总结 - 第一章:数据结构和算法
查看>>
Python03
查看>>
LOJ 2537 「PKUWC2018」Minimax
查看>>
使用java中replaceAll方法替换字符串中的反斜杠
查看>>
Android初学第36天
查看>>
Some configure
查看>>