中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-26 23:25
47,812 主题排行 / 349,912 发帖 / 今日 2 篇 / 48,264 会员排行
其它操作系统综合讨论区 » 我做的垃圾清理
可打印版本  1,071 / 1
第1楼 lqyhk1234 发表于 2008-07-06 18:11
初级用户 发帖 16 积分 31
我做的垃圾清理
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 清除系统垃圾完成!
第2楼 leonlau 发表于 2008-09-29 16:44
初级用户 发帖 27 积分 39

白痴的
干嘛要if
直接del就可以了
只不过del辉县市找不到*而已
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023