严重支持,我自己也在别人的基础上加强了一下,请各位指点。。
@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
@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
