命令行参数

环保卫士提供运行命令行参数的功能,实现"一步清理"。

下面是环保卫士 3.0支持参数


参数

/auto

激活自动扫描模式。下列功能要求先激活这个参数。

/scan:"C:\"

只扫描提供的驱动器或目录。如果不提供这个参数,环保卫士会自动扫描全部硬盘驱动器。

/setting:"C:\my_setting_path\settings.ini"

使用这个自定义的设置文件,而不使用标准设置。

/autoclean

自动把搜索到的文件清除,不提示用户。

/zipdelete /target:"C:\xxxxx\test.zip"

自动选定"压缩并删除"

/move /target:"C:\xxx\"

自动选定"移动"

/recycle

自动选定"送到回收站"

/deleteonly

自动选定"直接删除"

/ignorefiles

关闭磁盘搜索器

/ignoretracks

关闭痕迹搜索器

/ignoreshortcuts

关闭快捷连接搜索器

/ignoreprograms

关闭遗留程序搜索器

/help

启动帮助系统

/diskinfo
/diskinfo:"C:\xxx\path_to_explore"

启动磁盘信息工具


例子

启动环保卫士,自动查询所有硬盘并把文件删除。

C:\path_to_the_program\safecln.exe /auto /delete /autoclean

启动环保卫士,只查询"programfiles"目录和"windows"目录,然后把找到的文件送到c:\backup\。删除之前询问用户。

C:\path_to_the_program\safecln.exe /auto /scan:"c:\program files\" /scan:"c:\windows\" /move /target:"c:\backup"


相关连接