中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-27 01:00
中国DOS联盟论坛 » 其它操作系统综合讨论区 » 我做的垃圾清理 查看 1,074 回复 1
楼 主 我做的垃圾清理 发表于 2008-07-06 18:11 ·  中国 山东 枣庄 电信
初级用户
积分 31
发帖 16
注册 2008-04-11 19:58
18年会员
UID 115631
性别 男
状态 离线
if exist %windir%\minidump\*.* del /f /q /s %windir%\minidump\*.*
if exist %windir%\*.query del /f /q /s %windir%\*.query
if exist %userprofile%\NetHood\*.* del /f /q /s %userprofile%\NetHood\*.*
if exist %ALLUSERSPROFILE%\Documents\DrWatson\*.* del /f /q %ALLUSERSPROFILE%\Documents\DrWatson\*.*
if exist %systemdrive%\*.tmp del /f /s /q %systemdrive%\*.tmp
if exist %systemdrive%\*._mp del /f /s /q %systemdrive%\*._mp
if exist %systemdrive%\*.log del /f /s /q %systemdrive%\*.log
if exist %systemdrive%\*.gid del /f /s /q %systemdrive%\*.gid
if exist %systemdrive%\*.chk del /f /s /q %systemdrive%\*.chk
if exist %systemdrive%\*.old del /f /s /q %systemdrive%\*.old
if exist %systemdrive%\recycled\*.* del /f /s /q %systemdrive%\recycled\*.*
if exist %windir%\*.bak del /f /s /q %windir%\*.bak
if exist %windir%\*.log del /f /s /q %windir%\*.log
if exist %windir%\*.tmp del /f /s /q %windir%\*.tmp
if exist %windir%\prefetch\*.* del /f /s /q %windir%\prefetch\*.*
if exist %windir%\temp\*.* del /f /s /q %windir%\temp\*.*
if exist %userprofile%\recent\*.* del /f /q %userprofile%\recent\*.*
if exist %userprofile%\Local Settings\Temp\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*
if exist %userprofile%\recent\*.*" del /f /s /q "%userprofile%\recent\*.*
if exist %windir%\*.syd del /f /s /q %windir%\*.syd
if exist %windir%\*.--- del /f /s /q %windir%\*.---
if exist %windir%\mscreate.dir del /f /s /q %windir%\mscreate.dir
if exist %windir%\*.dir del /f /s /q %windir%\*.dir
if exist %windir%\*.dmp del /f /s /q %windir%\*.dmp
if exist %windir%\*.nch del /f /s /q %windir%\*.nch
if exist %windir%\help\*.* del /f /s /q %windir%\help\*.*
if exist %userprofile%\Local Settings\cookies\*.* del /f /s /q %userprofile%\Local Settings\cookies\*.*
if exist %windir%\History\*.* del %windir%\History\*.*
del /f /s /q %userprofile%\Local Settings\Temporary Internet Files\*.*
del /f /s /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk
if exist %windir%\SoftwareDistribution\Download\*.* del /f /s /q %windir%\SoftwareDistribution\Download\*.*
if exist %windir%\RegisteredPackages\*.* del /f /s /q %windir%\RegisteredPackages\*.*
if exist %windir%\Downloaded Program Files\*.* del /f /s /q%windir%\Downloaded Program Files\*.*
echo 清除系统垃圾完成!
本帖最近评分记录 (共 1 条) 点击查看详情
评分人分数时间
quya -4 2008-07-07 19:01
2 发表于 2008-09-29 16:44 ·  中国 广东 电信
初级用户
积分 39
发帖 27
注册 2008-09-06 16:04
17年会员
UID 124965
性别 男
状态 离线

白痴的
干嘛要if
直接del就可以了
只不过del辉县市找不到*而已
DOS
论坛跳转: