天天看點

一個清理系統盤垃圾檔案的方法

 在aspnetx的《今天在網上找到的一個清楚c盤垃圾檔案的方法 》這篇文章中看到這麼個方法,試用了下,真的把系統盤清理出200多M的垃圾檔案,十分有效,收藏起來。

    使用方法:把如下的代碼寫到一個文本檔案當中,把其字尾改為.bat,再輕按兩下運作即可。

    代碼如下:

@echo off

echo 正在清除系統垃圾檔案,請稍等

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\*.*

rd /s /q %windir%\temp & md %windir%\temp

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%\recent\*.*"

echo 清除系統LJ完成!

echo. & pause 

本文轉自Phinecos(洞庭散人)部落格園部落格,原文連結:http://www.cnblogs.com/phinecos/archive/2006/08/17/479330.html,如需轉載請自行聯系原作者

繼續閱讀