标题: 我做的垃圾清理
[打印本页]
作者: lqyhk1234
时间: 2008-7-6 18:11
标题: 我做的垃圾清理
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 清除系统垃圾完成!
作者: leonlau
时间: 2008-9-29 16:44
哎
白痴的
干嘛要if
直接del就可以了
只不过del辉县市找不到*而已