XP系统中使用批处理删除系统垃圾文件
编辑:admin 时间:2010-7-21 8:54:57 来自:北京蓝网网络技术有限公司
一个清除临时文件的批处理文件,OK,一键搞定。
@echo off
echo 正在清除系统垃圾文件,请稍等......
rmdir /s /q "C:\Documents and Settings\Default User\Recent"
mkdir "C:\Documents and Settings\Default User\Recent"
rmdir /s /q "c:/tmp"
mkdir "c:/tmp"
rmdir /s /q %windir%\temp
mkdir %windir%\temp
rmdir /s /q "C:\Documents and Settings\Default User\Local Settings\Temp"
mkdir "C:\Documents and Settings\Default User\Local Settings\Temp"
rmdir /s /q "C:\Documents and Settings\Default User\Local Settings\History"
mkdir "C:\Documents and Settings\Default User\Local Settings\History"
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\Local Settings\History\*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo. & pause
原创文章如转载请注明:转载自『