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,202 Replies 60
Floor 16 Posted 2007-04-06 06:27 ·  中国 河北 石家庄 电信
初级用户
Credits 99
Posts 41
Joined 2007-02-19 03:42
19-year member
UID 79773
Gender Male
Status Offline
The LZ is doing purely physical labor... Most of those codes can be changed to be automated...
量子公民
Floor 17 Posted 2007-04-06 06:36 ·  中国 广东 广州 海珠区 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
I'm cold..
Not worth writing streamlined code for this.

Really just manual labor.

As for the case issue.

楼主, give you a parameter.

if /i
This can ignore case.
知,不觉多。不知,乃求知
Floor 18 Posted 2007-04-06 06:42 ·  中国 广东 广州 海珠区 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
I still don't understand why you added so many @.

The first sentence turned off echo right away.

Tired?

@del /f /s /q "%userprofile%\Local Settings\Temp\*.*" 2>nul 3>nul
@del /f /s /q "%userprofile%\recent\*.*" 2>nul 3>nul
@del /f /s /q "%userprofile%\Local Settings\Tempor~1\*.*" 2>nul 3>nul
@if not exist %SystemRoot%\Minidump\NUL del /f /q /s %SystemRoot%\Minidump\*.* 2>nul 3>nul
@del /f /s /q "%allusersprofile%\Documents\DrWatson\*.*" 2>nul 3>nul
@del /f /s /q "%userprofile%\Application Data\Microsoft\Office\Recent\*.lnk" 2>nul 3>nul
@HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f>nul 2>nul
@taskkill /im explorer.exe /f > nul
@del /s /f /a /q "%userprofile%"\Local Settings\History\*.*" 2>nul 3>nul
@del /f /s /q "%userprofile%\cookies\*.*" 2>nul 3>nul
@start "" explorer.exe

Here? What if someone changes some settings?

The result is: You will mistakenly delete all files.

1. Unsafe command.
2. Wrote a lot of nonsense.
3. The things cleaned are not concise and practical enough.
知,不觉多。不知,乃求知
Floor 19 Posted 2007-04-07 11:15 ·  中国 河北 石家庄 电信
初级用户
Credits 99
Posts 41
Joined 2007-02-19 03:42
19-year member
UID 79773
Gender Male
Status Offline
In addition, so many nuls are completely unnecessary and will make users unable to see what they have deleted.
量子公民
Floor 20 Posted 2007-04-07 11:28 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
The essence must be the concentrated one, but the spirit of PF LZ's ctrl+V de, but only PF
Floor 21 Posted 2007-04-07 21:11 ·  中国 山东 济南 电信
新手上路
Credits 18
Posts 9
Joined 2007-01-04 04:36
19-year member
UID 75394
Gender Male
From 山东
Status Offline
I admire the building owner's patience!!! Give support
Floor 22 Posted 2007-04-08 03:09 ·  中国 湖南 永州 电信
初级用户
Credits 64
Posts 30
Joined 2007-03-26 06:39
19-year member
UID 82946
Gender Male
Status Offline
Recently I don't have time. When I have time, I'll optimize it. Upload a better one. Hehe~~
Floor 23 Posted 2007-04-08 05:24 ·  中国 河南 周口 联通
初级用户
Credits 57
Posts 28
Joined 2006-11-06 05:32
19-year member
UID 69754
Gender Male
From 中国
Status Offline
I can't be that good, I'm still learning? Top
Floor 24 Posted 2007-04-08 09:14 ·  中国 福建 福州 电信
新手上路
Credits 4
Posts 2
Joined 2007-04-08 08:53
19-year member
UID 84379
Gender Male
Status Offline
Hehe, thanks.
A very good idea, Windows Optimization Master is out of business
Floor 25 Posted 2007-04-28 10:20 ·  中国 安徽 芜湖 电信
新手上路
Credits 2
Posts 1
Joined 2007-04-27 08:42
19-year member
UID 86642
Gender Male
Status Offline
Not bad, worth learning
Floor 26 Posted 2007-04-28 23:09 ·  中国 江苏 南京 建邺区 电信
初级用户
Credits 60
Posts 29
Joined 2007-04-28 22:37
19-year member
UID 86809
Gender Male
Status Offline
Mainly still the system disk
Floor 27 Posted 2007-04-28 23:18 ·  中国 云南 普洱 电信
新手上路
Credits 2
Posts 1
Joined 2005-11-25 12:43
20-year member
UID 45897
Status Offline
Learning
Floor 28 Posted 2007-07-12 23:54 ·  中国 湖南 永州 电信
新手上路
Credits 13
Posts 6
Joined 2007-06-24 11:50
19-year member
UID 92226
Gender Male
Status Offline
Got it, learning is the way to make progress.
Floor 29 Posted 2007-07-13 11:35 ·  中国 广东 佛山 电信
初级用户
★★
Credits 193
Posts 98
Joined 2007-01-17 11:56
19-year member
UID 76803
Gender Male
Status Offline
Learned.. A bit cumbersome.. Cleaning up garbage can completely be automated
这家伙很聪明 什么都没留下
Floor 30 Posted 2007-07-13 12:17 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
Copyingenuity of PF LZ, imitation is the first step in learning, but change is the key. I always copy from each collected cmd with Ctrl+V little by little, and that's how I complete my cmd. Keep it up.
Forum Jump: