清理系统垃圾文件增强版批处理程序《强荐》
阳春吧
全部回复
仅看楼主
level 2
使用方法:单击鼠标“左键覆盖下列代码”再单击右键“复制”下面的代码,然后再转回桌面单击鼠标“右键”再用鼠标箭头移到“新建”单击“文本文档”然之后再“双击”~~~《文本文档》~~~进到里面把复制的代码“粘贴”下来~~再用鼠标单击左上角的“文件(F)”左键单击选择“另存为”———文件名(N):“强奸垃圾.bat”或“清除系统LJ.bat”———保存类型(T):所有文件———编码(E):ANSI———然之后再用鼠标左键单击右下角的“保存”---~~~完成~~~告示:《从reg一直开始复制下.完毕。》reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache>%temp%\cleantmp.txt reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cookies>>%temp%\cleantmp.txt reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v History>>%temp%\cleantmp.txt reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v NetHood>>%temp%\cleantmp.txt reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Recent>>%temp%\cleantmp.txt echo 正在清理Cookies、IE缓存、历史纪录等(当前用户)…… for /f "tokens=3*" %%a in (%temp%\cleantmp.txt) do ( for /d %%i in ("%%a %%b\*.*") do rd /s /q "%%i" del /a /f /s /q "%%a %%b\*.*" ) ::跟上面几项未必是重复的(!),也是对当前用户目录 echo 正在清理临时文件 (系统目录)…… 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" echo 正在清理系统目录中的垃圾文件 (稍候,需要点时间)…… del /a /f /s /q "%systemdrive%\*._mp" del /a /f /s /q "%systemdrive%\*.log" del /a /f /s /q "%systemdrive%\*.dmp" del /a /f /s /q "%systemdrive%\*.gid" del /a /f /s /q "%systemdrive%\*.old" del /a /f /s /q "%systemdrive%\*.tmp" del /a /f /s /q "%systemdrive%\recycled\*.*" del /a /f /s /q "%SystemRoot%\*.bak" del /a /f /s /q "%SystemRoot%\*.query" 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%\Help" rd /s /q "%SystemRoot%\system32\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 Cache\*.pnf" del /a /f /s /q "%SystemRoot%\Driver Cache\InfCache.1" del /a /f /s /q "%SystemRoot%\system32\drivers\*.pnf" del /a /f /s /q "%SystemRoot%\system32\drivers\InfCache.1" rd /s /q "%SystemRoot%\temp" & md "%SystemRoot%\temp" del /a /f /s /q "%SystemRoot%\Prefetch\*.*" del /a /f /s /q "%SystemRoot%\minidump\*.*" echo 正在清除无用的磁盘检错文件 (系统分区)…… 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" echo 正在清理系统升级补丁留下来的反安装目录 (已修正能正确清除)…… dir %SystemRoot%\$*$ /ad/b >%SystemRoot%\vTmp.txt for /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemRoot%\%%a" echo 正在清除常见的软件垃圾项目 (按默认目录)…… 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%\Kaspersky Lab\*.tmp" echo. echo 全部清理完毕,任意键退出 (注: 若提示文件没找到是正常的)…… pause >nul del %SystemRoot%\vTmp.txt
2008年02月22日 09点02分 1
level 1
可行,顶一下
2008年02月22日 09点02分 2
level 2
哈哈,厉害吧~~本人的私人珍藏~~今天给大家也来感受一下干净的系统
2008年02月22日 09点02分 3
level 1
噢,我可不是在你这里试用的,是在木马吧花了币币向人索要的。
2008年02月22日 09点02分 4
level 2
我晕
2008年02月22日 10点02分 5
level 8
试试,以前用过,可能这是加强版的吧,呵呵
2008年02月22日 14点02分 6
level 12
用360安全卫士,慢慢玩,直观好多,也可以学点电脑的东西更好
2008年02月22日 14点02分 7
level 8
360我也有用,不过这个方便点,一打开就行了,
2008年02月22日 14点02分 8
level 12
这个只是删除一些垃圾文件,要优化系统,还有好多的要作处理的,就删除这些文件,好象对提高系统性能没太大效果
2008年02月22日 14点02分 9
level 8
我试过用优化大师优化,如果\把我系统给休了....
2008年02月22日 14点02分 10
level 1
路过
2008年02月22日 14点02分 11
1