|
qpmgljf
初级用户
 
积分 125
发帖 49
注册 2006-12-24
状态 离线
|
『楼 主』:
系统垃圾清理加强版
使用 LLM 解释/回答一下
本人闲来无事,在别人的基础上弄了个系统清理垃圾加强版,请各位高手补充,批评,指正~~谢谢~~
严重支持,我自己也在别人的基础上加强了一下,请各位指点。。
@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
I am idle and based on others' work, I made an enhanced version of system garbage cleaning. Please help with supplementation, criticism, and correction. Thanks~~
Strongly support, I also enhanced it based on others' work, please give pointers.
@echo off
SET TT=One-click system garbage cleaning
mode con: cols=70 lines=20
color 1f
TITLE %TT%------Made by Jianfeng ︻$▅▆▇◤
echo.
echo Please press any key to start cleaning general system garbage files!
pause>nul
echo.
echo Cleaning system garbage files, please wait......
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 General system garbage cleaning completed!
echo.
echo.
:xuanze
echo.
SET Choice=
SET /P Choice= Press q to exit the program, press c to continue enhanced cleaning:
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 Tip: Enhanced cleaning is for cleaning residual garbage after system installation
echo It is recommended to use enhanced cleaning before backing up the system!
echo Please install patches before cleaning!
echo.
echo Please press any key to start enhanced cleaning, you can directly close this window to exit!
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 ╭═══┤ ★Made by Jianfeng★ ├═══╮
ECHO ║ ╰══════════════╯ ║
ECHO ║┏━┳━┳━┳━┓ ║
ECHO ║┣┳┻┳┻┳┻┳┫ QQ:61813046 ║
ECHO ║┣┻┳╋━╋┳┻┫ ║
ECHO ║┣┳┻┫卐┣┻┳┫ Email:qpmgljf@163.com ║
ECHO ║┣┻┳┻┳┻┳┻┫ ║
ECHO ║┣┳┻┳┻┳┻┳┫ ║
ECHO ║┗┻━┻━┻━┻┛ ║
ECHO ║ ║
ECHO ║ ▉▉▉▉▉▉▉▉100%%▉▉▉▉▉▉▉▉▉ ║
ECHO ╰══════════════════════╯
echo.
echo Cleaning completed!
echo.
echo Please press any key to end this program, thank you for using!
pause>nul
|
|
2007-7-14 10:27 |
|
|
zlg029wyc027
初级用户
 
积分 35
发帖 22
注册 2007-6-29
状态 离线
|
|
2007-7-30 14:46 |
|
|
jashonx
初级用户
  铂金会员
积分 44
发帖 21
注册 2007-4-15
状态 离线
|
『第 3 楼』:
好好学习,天天向上!
使用 LLM 解释/回答一下
从这段代码,学到一些有用的东西!
Learn something useful from this code!
|
|
2007-7-30 15:53 |
|
|
hy55310
新手上路

积分 13
发帖 7
注册 2007-8-7
状态 离线
|
|
2007-8-9 15:45 |
|
|
cbss163
新手上路

积分 4
发帖 2
注册 2007-8-11
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
集众所长嘛,思路不错,学习中~
Learn from others' strong points, the idea is good, learning~
|
|
2007-8-12 15:52 |
|
|
jsb2008
初级用户
 
积分 43
发帖 22
注册 2007-8-21
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
研究一下,谢谢楼主分享!
Let's study, thank you the building owner for sharing!
|
|
2007-8-21 14:03 |
|
|
weiyepin
初级用户
 
积分 32
发帖 19
注册 2007-8-5
状态 离线
|
|
2007-8-21 14:19 |
|
|
icyheart
中级用户
  
积分 216
发帖 81
注册 2007-8-6
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
上面那段代码在清理回收站的时候是清理不了的,要清理回收站里的东西得用下面这段代码:
@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 ]
The above code cannot clear the Recycle Bin. To clear the contents in the Recycle Bin, use the following code:
@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 Cleanup completed!!
pause>nul
Last edited by icyheart on 2007-8-21 at 11:02 PM ]
|
|
2007-8-21 22:47 |
|