中国DOS联盟论坛

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-11-11 08:00
47,815 topics / 349,930 posts / today 0 new / 48,291 members
DOS批处理 & 脚本技术(批处理室) » Computer Junk Cleanup Assistant
Printable Version  11,508 / 60
Floor16 airosp Posted 2007-04-06 06:27
初级用户 Posts 41 Credits 99
The LZ is doing purely physical labor... Most of those codes can be changed to be automated...
Floor17 flyinspace Posted 2007-04-06 06:36
银牌会员 Posts 517 Credits 1,206
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.
Floor18 flyinspace Posted 2007-04-06 06:42
银牌会员 Posts 517 Credits 1,206
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.
Floor19 airosp Posted 2007-04-07 11:15
初级用户 Posts 41 Credits 99
In addition, so many nuls are completely unnecessary and will make users unable to see what they have deleted.
Floor20 qingfushuan Posted 2007-04-07 11:28
高级用户 Posts 327 Credits 502
The essence must be the concentrated one, but the spirit of PF LZ's ctrl+V de, but only PF
Floor21 piaoye0605 Posted 2007-04-07 21:11
新手上路 Posts 9 Credits 18 From 山东
I admire the building owner's patience!!! Give support
Floor22 Mxark Posted 2007-04-08 03:09
初级用户 Posts 30 Credits 64
Recently I don't have time. When I have time, I'll optimize it. Upload a better one. Hehe~~
Floor23 shikx2008 Posted 2007-04-08 05:24
初级用户 Posts 28 Credits 57 From 中国
I can't be that good, I'm still learning? Top
Floor24 applehdh Posted 2007-04-08 09:14
新手上路 Posts 2 Credits 4
Hehe, thanks.
A very good idea, Windows Optimization Master is out of business
Floor25 9tiansj Posted 2007-04-28 10:20
新手上路 Posts 1 Credits 2
Not bad, worth learning
Floor26 yxzpt Posted 2007-04-28 23:09
初级用户 Posts 29 Credits 60
Mainly still the system disk
Floor27 zrw1846 Posted 2007-04-28 23:18
新手上路 Posts 1 Credits 2
Learning
Floor28 gdygood Posted 2007-07-12 23:54
新手上路 Posts 6 Credits 13
Got it, learning is the way to make progress.
Floor29 luowei14 Posted 2007-07-13 11:35
初级用户 Posts 98 Credits 193
Learned.. A bit cumbersome.. Cleaning up garbage can completely be automated
Floor30 qingfushuan Posted 2007-07-13 12:17
高级用户 Posts 327 Credits 502
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.
Prev  1 2 3 4 5  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023