![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-05 15:43 |
48,039 topics / 350,124 posts / today 2 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Enhanced System Junk Cleaner |
| Printable Version 1,729 / 7 |
| Floor1 qpmgljf | Posted 2007-07-14 10:27 |
| 初级用户 Posts 49 Credits 125 | |
|
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 |
|
| Floor2 zlg029wyc027 | Posted 2007-07-30 14:46 |
| 初级用户 Posts 22 Credits 35 | |
|
Give it a support!!!
|
|
| Floor3 jashonx | Posted 2007-07-30 15:53 |
| 初级用户 Posts 21 Credits 44 | |
|
Learn something useful from this code!
|
|
| Floor4 hy55310 | Posted 2007-08-09 15:45 |
| 新手上路 Posts 7 Credits 13 | |
|
Learned some useful things
|
|
| Floor5 cbss163 | Posted 2007-08-12 15:52 |
| 新手上路 Posts 2 Credits 4 | |
|
Learn from others' strong points, the idea is good, learning~
|
|
| Floor6 jsb2008 | Posted 2007-08-21 14:03 |
| 初级用户 Posts 22 Credits 43 | |
|
Let's study, thank you the building owner for sharing!
|
|
| Floor7 weiyepin | Posted 2007-08-21 14:19 |
| 初级用户 Posts 19 Credits 34 | |
| Floor8 icyheart | Posted 2007-08-21 22:47 |
| 中级用户 Posts 81 Credits 216 | |
|
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 ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |