tonychen 发表于 2009-5-25 19:59:44

落雪梨花一键清理系统垃圾增强公测版

落雪梨花一键清理系统垃圾增强公测版
落雪梨花一键清理系统垃圾增强公测版
经认真研究和实验,在XP系统中还可以清理出较多垃圾,准备把这些研究成果整合到“清理垃圾第二版”中,现在放出这些代码和bat文件,提供给朋友们公测。落雪梨花在多台电脑可以安全清理,不会对系统和软件造成影响,建议参加测试的朋友做好系统备份。
相对于第二版,增加了对软件垃圾的清理(尤其是QQ2009)。而且把触角伸向system32文件,根据深度小兵的文章,对注册表文件的SAV文件、证书签名文件、备份的驱动文件、安装模式下的背景文件作出删除,这几个文件不会对系统安全构成任何危害,欢迎大家测试反馈。
针对反馈意见会有选择的把这些代码整合到“一键清理系统垃圾第二版”中,代码如下:
------------------------------------------------------------------------
del /f /s /q %systemdrive%\*.tmp
RD %windir%\$hf_mig$ /Q /S
del %windir%\2950800.txt /f /q
for /f %%i in (%windir%\2950800.txt) do rd %windir%\%%i /s /q
dir %windir%\$NtUninstall* /a:d /b >%windir%\2950800.txt
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.pnf
del /f /s /q %systemdrive%\infcache.1
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
del /a /f /s /q "%userprofile%\Locals~1\Tempor~1\*.*"
del /a /f /s /q "%userprofile%\Locals~1\Temp\*.*"
del /a /f /s /q "%userprofile%\cookies\*.*"
del /a /f /s /q "%userprofile%\recent\*.*"
del /a /f /s /q "%Temp%\*.*"
del /a /f /s /q "%Tmp%\*.*"
del /a /f /s /q "%HomePath%\..\IconCache.db"
del /a /f /s /q "%SystemRoot%\*._mp"
del /a /f /s /q "%SystemRoot%\*.bak"
del /a /f /s /q "%SystemRoot%\*.log"
del /a /f /s /q "%SystemRoot%\*.dmp"
del /a /f /s /q "%SystemRoot%\*.gid"
del /a /f /s /q "%SystemRoot%\*.old"
del /a /f /s /q "%SystemRoot%\*.query"
del /a /f /q "%SystemRoot%\*.tmp"
rd /s /q "%SystemRoot%\Downloaded Program Files"
rd /s /q "%SystemRoot%\Offline Web Pages"
rd /s /q "%systemroot%\Connection Wizard"
rd /s /q "%SystemRoot%\SoftwareDistribution\Download"
rd /s /q "%SystemRoot%\Assembly"
rd /s /q "%SystemRoot%\ReinstallBackups"
del /a /s /q "%SystemRoot%\inf\*.pnf"
del /a /f /s /q "%SystemRoot%\inf\InfCache.1"
dir %SystemRoot%\inf\*.* /ad/b >%SystemRoot%\vTmp.txt
for /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemRoot%\inf\%%a"
del /a /f /s /q "%SystemRoot%\driver?\*.pnf"
del /a /f /s /q "%SystemRoot%\driver?\InfCache.1"
del /a /f /s /q "%SystemDrive%\driver?\*.pnf"
del /a /f /s /q "%SystemDrive%\driver?\InfCache.1"
rd /s /q "%SystemRoot%\temp" & md "%SystemRoot%\temp"
del /a /f /s /q "%SystemRoot%\Prefetch\*.*"
del /a /f /s /q "%SystemRoot%\minidump\*.*"
del /a /f /q "%SystemDrive%\*.chk"
dir %SystemDrive%\found.??? /ad/b >%SystemRoot%\vTmp.txt
for /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemDrive%\%%a"
dir %SystemRoot%\$*$ /ad/b >%SystemRoot%\vTmp.txt
for /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemRoot%\%%a"
rd /s /q "%ProgramFiles%\InstallShield Installation Information"
Ren "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" realsched.ex_
Del "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe"
Reg Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v TkBellExe /f
rd /s /q "%ProgramFiles%\Tencent\QQGame\Download"
taskkill /f /im "TIMPlatform.exe" /t
del /a /f /s /q "%ProgramFiles%\Tencent\QQ\TIMPlatform.exe"
del /a /f /s /q "%ProgramFiles%\Kaspersky Lab\*.tmp"
del /a /f /s /q "%userprofile%\Application Data\SogouPY\sgim_ext.bin"
del /a /f /s /q "%userprofile%\Application Data\Tencent\*.*"
del /a /f /s /q "%userprofile%\Application Data\IconCache.db"
del /a /f /s /q "%userprofile%\Application Data\PE Explorer\*.*"
del /a /f /s /q "%userprofile%\Application Data\QQ\*.*"
del /a /f /s /q "%userprofile%\Local Settings\Application Data\Macromedia\*.*"
del /a /f /s /q "%userprofile%\Local Settings\Application Data\Tencent\*.*"
del /a /f /s /q "%userprofile%\Local Settings\Application Data\DFX\*.*"
del /a /f /s /q "%Windir%"\Tasks\*.*"
del /a /f /s /q "%Windir%"\SoftwareDistribution\*.*"
del /a /f /s /q "%Windir%"\Recent\*.*"
del /a /f /s /q "%Windir%"\repair\*.*"
del /a /f /s /q "%Windir%"\System32\catroot2\*.*"
del /a /f /s /q "%Windir%"\System32\config \*.sav"
del /a /f /s /q "%Windir%"\System32\ReinstallBackups\*.*"
del /a /f /s /q "%Windir%"\System32\winntbbu.dll"
-------------------------------------------------------------
可以从附件获取批处理
以下内容需要回复才能看到

下载地址
页: [1]
查看完整版本: 落雪梨花一键清理系统垃圾增强公测版