找回密码
 注册

QQ登录

只需一步,快速开始

最棒的XP操作系统垃圾清理小程序

[复制链接]
发表于 2009-1-2 23:58:40 | 显示全部楼层 |阅读模式
<P>&nbsp;</P>; N" i; X/ t0 u/ k8 }, o
<P>&nbsp;</P>
) r: I2 b1 N* o% x) l7 e; M( w<P>&nbsp;</P>8 N% `7 S- u4 s! l8 {6 p+ O" E
<P>&nbsp;</P>
4 f% d# s8 W" v! U: n. V<P>复制-粘帖到记事本,</P>: s; |, h: B, S1 N. n- ?
<P>&nbsp;</P>
+ D+ |/ C1 t2 h" d+ Q5 q8 {* S: y0 Q<P>另存为所有文件-**(任意名字).BAT,</P>
! |, ]8 @" [2 a- c# S) ^2 q8 I! _6 N& q6 K<P>&nbsp;</P>9 A% f; f) Y- ^' [2 s
<P>双击运行就可以清除系统垃圾了.</P>
# A5 v" ]4 g/ [  d( |<P>&nbsp;</P>
  ]4 @$ G  ^: p9 P" E/ F<P>也可以下载2楼附件直接使用.</P>
3 T; x- h/ u* L! [5 [: F<P>&nbsp;</P>
* Y6 g2 y  I9 N5 k9 G<P>&nbsp;</P>
8 s( {! }3 J0 ]& m<P>&nbsp;</P>7 _$ l9 s7 |* f& v7 a) x' {
<P>.</P>
9 @( L. @* R. s* n, Y7 p<P>&nbsp;</P>
1 a+ m1 A  {5 F3 M1 D* W, f<P>&nbsp;</P>
& c! S. J! s1 ?$ A<P>&nbsp;</P>* X9 r1 c: L. Y+ E" F
<P>&nbsp;</P>
# V# ~( }' r" @9 r7 v<P>&nbsp;</P>
0 I1 W/ ^& P, f  ?0 c1 |<P>
@echo off<BR>::修正于2009-01-02<BR>color 2f<BR>Title 系统垃圾文件清理器 中都社区专用版 By 红白菜<BR>echo.<BR>echo =========================================================<BR>echo ***** 系统垃圾文件清理器 中都社区专用版 By 红白菜 *****<BR>echo.<BR>echo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 修改制作:红白菜 <A href="http://www.zhongdushi.cn">www.zhongdushi.cn</A></P>0 ?2 r4 G1 i  H  i
<P>echo =========================================================<BR>echo.<BR>echo 本程序特点<BR>echo.<BR>echo 鉴于很多人把IE缓存等文件夹转移到非系统盘,<BR>echo 所以,本程序清理垃圾文件时,首先进行判断系<BR>echo 统的设置。<BR>echo.<BR>echo 优点:清理位置更加准确,策略更加科学。<BR>echo.<BR>echo 开始执行清理……<BR>echo.<BR>echo 正在检查cookies、历史纪录等目录位置(当前用户)……<BR>reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache&gt;%temp%\cleantmp.txt<BR>reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cookies&gt;&gt;%temp%\cleantmp.txt<BR>reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v History&gt;&gt;%temp%\cleantmp.txt<BR>reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v NetHood&gt;&gt;%temp%\cleantmp.txt<BR>reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Recent&gt;&gt;%temp%\cleantmp.txt<BR>echo 正在清理Cookies、IE缓存、历史纪录等(当前用户)……<BR>for /f "tokens=3*" %%a in (%temp%\cleantmp.txt) do (<BR>for /d %%i in ("%%a %%b\*.*") do rd /s /q "%%i"<BR>del /a /f /s /q "%%a %%b\*.*"<BR>)<BR>::跟上面几项未必是重复的(!),也是对当前用户目录<BR>echo 正在清理临时文件 (系统目录)……<BR>del /a /f /s /q "%userprofile%\Locals~1\Tempor~1\*.*" <BR>del /a /f /s /q "%userprofile%\Locals~1\Temp\*.*" <BR>del /a /f /s /q "%userprofile%\cookies\*.*" <BR>del /a /f /s /q "%userprofile%\recent\*.*"<BR>del /a /f /s /q "%Temp%\*.*"<BR>del /a /f /s /q "%Tmp%\*.*"<BR>del /a /f /s /q "%HomePath%\..\IconCache.db"<BR>echo 正在清理系统目录中的垃圾文件 (稍候,需要点时间)……<BR>del /a /f /s /q "%systemdrive%\*._mp"<BR>del /a /f /s /q "%systemdrive%\*.log"<BR>del /a /f /s /q "%systemdrive%\*.dmp"<BR>del /a /f /s /q "%systemdrive%\*.gid"<BR>del /a /f /s /q "%systemdrive%\*.old"<BR>del /a /f /s /q "%systemdrive%\*.tmp"<BR>del /a /f /s /q "%systemdrive%\recycled\*.*"<BR>del /a /f /s /q "%SystemRoot%\*.bak"<BR>del /a /f /s /q "%SystemRoot%\*.query"<BR>rd /s /q "%SystemRoot%\Downloaded Program Files"<BR>rd /s /q "%SystemRoot%\Offline Web Pages"<BR>rd /s /q "%systemroot%\Connection Wizard"<BR>rd /s /q "%SystemRoot%\SoftwareDistribution\Download"<BR>rd /s /q "%SystemRoot%\Assembly"<BR>rd /s /q "%SystemRoot%\Help"<BR>rd /s /q "%SystemRoot%\system32\ReinstallBackups"<BR>del /a /s /q "%SystemRoot%\inf\*.pnf"<BR>del /a /f /s /q "%SystemRoot%\inf\InfCache.1"<BR>dir %SystemRoot%\inf\*.* /ad/b &gt;%SystemRoot%\vTmp.txt<BR>for /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemRoot%\inf\%%a"<BR>del /a /f /s /q "%SystemRoot%\Driver Cache\*.pnf"<BR>del /a /f /s /q "%SystemRoot%\Driver Cache\InfCache.1" <BR>del /a /f /s /q "%SystemRoot%\system32\drivers\*.pnf"<BR>del /a /f /s /q "%SystemRoot%\system32\drivers\InfCache.1"<BR>rd /s /q "%SystemRoot%\temp" &amp; md "%SystemRoot%\temp"<BR>del /a /f /s /q "%SystemRoot%\Prefetch\*.*"<BR>del /a /f /s /q "%SystemRoot%\minidump\*.*"<BR>echo 正在清除无用的磁盘检错文件 (系统分区)……<BR>del /a /f /q "%SystemDrive%\*.chk"<BR>dir %SystemDrive%\found.??? /ad/b &gt;%SystemRoot%\vTmp.txt<BR>for /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemDrive%\%%a"<BR>echo 正在清理系统升级补丁留下来的反安装目录 (已修正能正确清除)……<BR>dir %SystemRoot%\$*$ /ad/b &gt;%SystemRoot%\vTmp.txt<BR>for /f %%a in (%SystemRoot%\vTmp.txt) do rd /s /q "%SystemRoot%\%%a"<BR>echo 正在清除常见的软件垃圾项目 (按默认目录)……<BR>rd /s /q "%ProgramFiles%\InstallShield Installation Information"<BR>Ren "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" realsched.ex_<BR>Del "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe"<BR>Reg Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v TkBellExe /f<BR>rd /s /q "%ProgramFiles%\Tencent\QQGame\Download"<BR>taskkill /f /im "TIMPlatform.exe" /t<BR>del /a /f /s /q "%ProgramFiles%\Kaspersky Lab\*.tmp"<BR>echo.<BR>echo 全部清理完毕,任意键退出 (注: 若提示文件没找到是正常的)……<BR>pause &gt;nul<BR>del %SystemRoot%\vTmp.txt
</P>
 楼主| 发表于 2009-1-3 00:12:44 | 显示全部楼层
发表于 2009-1-14 16:07:47 | 显示全部楼层
谢谢,一直在用。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|本地广告联系: QQ:905790666 TEL:13176190456|Archiver|手机版|小黑屋|汶上信息港 ( 鲁ICP备19052200号-1 )

GMT+8, 2025-4-29 15:51

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表