win7清除垃圾文件脚本

[ 文章作者:钟艺东 最后修改:2010年2月8日 ]
[ 文章链接:http://www.g868.com/win7-garbage-collection-script-file.html ]

今天突然觉得自己的电脑视乎慢了许多,偶然留意了C盘空间剩余2GB左右......网上淘来以下脚本,运行后感觉速度快了些,C盘空间重回6GB!

@echo off
RD %windir%\$hf_mig$ /Q /S
dir %windir%\$NtUninstall* /a:d /b >%windir%\newwzp.txt
for /f %%i in (%windir%\newwzp.txt) do rd %windir%\%%i /s /q
del %windir%\newwzp.txt /f /q
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
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\*.*
rd /s /q %windir%\temp md %windir%\temp
del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"
del /f /s /q "%userprofile%\local settings\temp\*.*"
echo.& pause

2010年2月8日
本文目前尚无任何评论.

发表评论

XHTML: 您可以使用这些标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">