China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 22:27
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Computer Junk Cleanup Assistant View 10,201 Replies 60
Floor 31 Posted 2007-07-14 10:25 ·  中国 甘肃 张掖 电信
初级用户
Credits 125
Posts 49
Joined 2006-12-24 08:33
19-year member
UID 74424
Gender Male
Status Offline
Severe support, I also strengthened it on someone else's basis, please give your advice.
@echo off
SET TT=One-click system junk file cleanup
mode con: cols=70 lines=20
color 1f
TITLE %TT%------Made by Jianfeng ︻$▅▆▇◤
echo.
echo Please press any key to start cleaning general system junk files!
pause>nul
echo.
echo Cleaning system junk 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 junk cleanup completed!
echo.
echo.
:xuanze
echo.
SET Choice=
SET /P Choice=    Press q to exit the program, press c to continue enhanced cleanup:
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 cleanup is used to clean up residual junk after system installation
echo It is recommended to use enhanced cleanup before backing up the system!
echo Please install patches before cleaning!
echo.
echo Please press any key to start enhanced cleanup, 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 Cleanup completed!
echo.
echo Please press any key to end this program, thank you for using!
pause>nul
Floor 32 Posted 2007-08-05 12:54 ·  中国 江苏 苏州 电信
新手上路
Credits 9
Posts 5
Joined 2007-08-05 00:03
18-year member
UID 94660
Gender Male
Status Offline
Support it's just too much `~~
Floor 33 Posted 2007-08-05 22:16 ·  西班牙
初级用户
Credits 31
Posts 13
Joined 2006-08-22 12:39
19-year member
UID 61026
Status Offline
Not quite understand. Just directly call the WINDOWS disk garbage cleaning tool should be better, right?
Floor 34 Posted 2007-08-06 13:24 ·  中国 辽宁 辽阳 联通
新手上路
Credits 10
Posts 4
Joined 2007-08-06 12:46
18-year member
UID 94725
Gender Male
Status Offline
Take a look, just why is there still a file needed
Floor 35 Posted 2007-08-08 22:53 ·  中国 北京 华为云
新手上路
Credits 13
Posts 7
Joined 2007-08-07 14:47
18-year member
UID 94784
Gender Male
Status Offline
Agree with the view of the person above!
How can you progress without learning? Copying is a shortcut to learning!! The spirit is worthy of support
Floor 36 Posted 2007-08-10 22:22 ·  中国 安徽 蚌埠 电信
初级用户
Credits 52
Posts 26
Joined 2007-08-09 02:27
18-year member
UID 94866
Gender Male
Status Offline
Too cumbersome, or use the mouse to delete under the folder
Floor 37 Posted 2007-09-26 08:12 ·  IANA 局域网IP(Private-Use)
新手上路
Credits 2
Posts 1
Joined 2007-09-22 13:34
18-year member
UID 98041
Gender Male
Status Offline
Floor 38 Posted 2007-09-26 14:10 ·  中国 广东 广州 白云区 电信
初级用户
★★
Credits 172
Posts 54
Joined 2007-01-02 10:38
19-year member
UID 75260
Gender Male
Status Offline
haha, N miserable``Doing hard work and being looked down upon as having no technical content, haha```唉
Floor 39 Posted 2007-09-26 16:05 ·  中国 广东 广州 增城区 电信
初级用户
Credits 90
Posts 40
Joined 2007-04-08 04:50
19-year member
UID 84350
Gender Male
From 广州
Status Offline
I don't like to make these cleaning things by myself, and my skills aren't that high~ Just as the person above said, there are so many my @, and the楼主 added @ ECHO OFF at the beginning. I really don't understand if the楼主 knows what the @ does? And there are so many >NUL, in this way the user really can't see what garbage files they deleted~~ To make a BAT for cleaning the system, just think clearly, which is to delete useless files. I think as long as the useless files are deleted, it's made so fancy, which is more annoying than making an advertisement~~ It's more convenient to just DEL /Y /Q the things in the folder directly~~
Floor 40 Posted 2007-10-17 23:55 ·  中国 山东 联通
新手上路
Credits 4
Posts 2
Joined 2007-10-15 23:26
18-year member
UID 99859
Gender Male
Status Offline
Learn, thanks for sharing
Floor 41 Posted 2007-10-17 23:55 ·  中国 山东 联通
新手上路
Credits 4
Posts 2
Joined 2007-10-15 23:26
18-year member
UID 99859
Gender Male
Status Offline
Learn, thanks for sharing
Floor 42 Posted 2007-10-29 18:01 ·  西班牙
新手上路
Credits 2
Posts 1
Joined 2007-10-29 17:04
18-year member
UID 101101
Gender Male
Status Offline
Floor 43 Posted 2007-12-26 10:44 ·  中国 浙江 温州 平阳县 电信
初级用户
Credits 97
Posts 42
Joined 2006-10-05 22:12
19-year member
UID 64633
Gender Male
Status Offline
It doesn't look as intimidating as code at all. I've tried and even clearing the files in the IE temporary folder can't get rid of it.
Floor 44 Posted 2007-12-26 13:52 ·  中国 广西 南宁 电信
初级用户
★★
Credits 127
Posts 59
Joined 2007-11-13 00:41
18-year member
UID 102491
Gender Female
Status Offline
Hehe, I will learn from your spirit. Hope to write good code in the future ^_^
Floor 45 Posted 2007-12-26 21:02 ·  中国 广东 深圳 福田区 电信
新手上路
Credits 2
Posts 1
Joined 2007-12-26 20:36
18-year member
UID 106866
Gender Male
Status Offline
That's interesting. At least I can show off in front of computer novices. :P
Forum Jump: