标题: 系统垃圾清理加强版
[打印本页]
作者: qpmgljf
时间: 2007-7-14 10:27
标题: 系统垃圾清理加强版
本人闲来无事,在别人的基础上弄了个系统清理垃圾加强版,请各位高手补充,批评,指正~~谢谢~~
严重支持,我自己也在别人的基础上加强了一下,请各位指点。。
@echo off
SET TT=一键清理系统垃圾文件
mode con: cols=70 lines=20
color 1f
TITLE %TT%------剑锋制作︻$▅▆▇◤
echo.
echo 请按任意键开始清理系统一般垃圾文件!
pause>nul
echo.
echo 正在清理系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
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\*.*"
echo.
echo.
echo 清理一般系统垃圾完成!
echo.
echo.
:xuanze
echo.
SET Choice=
SET /P Choice= 要退出程序按q,要继续加强清理按c:
IF NOT '%Choice%'=='' SET Choice1=%Choice:~0,1%
IF /I '%Choice%'=='q' goto end
IF /I '%Choice%'=='c' goto next
cls
goto xuanze
:next
cls
echo.
echo.
echo 提示:加强清理用于清理安装系统后的残留垃圾
echo 建议在备份系统前使用加强清理!
echo 清理之前请将补丁安装完毕!
echo.
echo 请按任意键加强清理,想退出可直接关闭本窗口!
pause>nul
echo.
rd /s /q "c:\program files\messenger"
del /f /s /q "c:\program files\msn gaming zone\*.*"
rd /s /q "c:\program files\msn gaming zone"
del /f /s /q "c:\Program Files\InstallShield Installation Information\*.*"
for /f "delims=" %%a in ('dir /ad %windir%\$NtUninstallKB* /b') do rd /s /q %windir%\%%a
del /f /s /q %windir%\$hf_mig$\*.*
del /f /s /q "%windir%\RegisteredPakages\*.*"
del /f /s /q "%windir%\Downloaded Installations\*.*"
del /f /s /q "%windir%\web\wallpaper\肖像*.*"
:end
echo.
echo.
ECHO ╭══════════════╮
ECHO ╭═══┤ ★劍鋒製作★ ├═══╮
ECHO ║ ╰══════════════╯ ║
ECHO ║┏━┳━┳━┳━┓ ║
ECHO ║┣┳┻┳┻┳┻┳┫ QQ:61813046 ║
ECHO ║┣┻┳╋━╋┳┻┫ ║
ECHO ║┣┳┻┫卐┣┻┳┫ Email:qpmgljf@163.com ║
ECHO ║┣┻┳┻┳┻┳┻┫ ║
ECHO ║┣┳┻┳┻┳┻┳┫ ║
ECHO ║┗┻━┻━┻━┻┛ ║
ECHO ║ ║
ECHO ║ ▉▉▉▉▉▉▉▉100%%▉▉▉▉▉▉▉▉▉ ║
ECHO ╰══════════════════════╯
echo.
echo 清理完毕!
echo.
echo 请按任意键结束本程序,谢谢您的使用!
pause>nul
作者: zlg029wyc027
时间: 2007-7-30 14:46
支持一下!!!!
作者: jashonx
时间: 2007-7-30 15:53
标题: 好好学习,天天向上!
从这段代码,学到一些有用的东西!
作者: hy55310
时间: 2007-8-9 15:45
学到一些有用的东西
作者: cbss163
时间: 2007-8-12 15:52
集众所长嘛,思路不错,学习中~
作者: jsb2008
时间: 2007-8-21 14:03
研究一下,谢谢楼主分享!
作者: weiyepin
时间: 2007-8-21 14:19
有点小牛!
作者: icyheart
时间: 2007-8-21 22:47
上面那段代码在清理回收站的时候是清理不了的,要清理回收站里的东西得用下面这段代码:
@echo off
set alldrive=c d e f g h i j k l m n o p q r s t u v w x y z
for %%a in (%alldrive%) do if exist %%a:\Recycled rd /s /q %%a:\Recycled
for %%a in (%alldirve%) do if exist %%a:\RECYCLER rd /s /q %%a:\RECYCLER
echo 清理完成!!
pause>nul
Last edited by icyheart on 2007-8-21 at 11:02 PM ]