Welcome to Oh ! My Blog

Diary[軟件]一鍵清理系統垃圾
[ idsky 發表於 2008/3/2 上午 06:13:00 ]

如果你經常安裝/反安裝軟件、升級、瀏覽網頁
都會令你系統遺留一些如 tmp, log, chk, old等無用的暫存檔
經過一段時間後這些積存在系統的"垃圾"
就會佔用硬碟少則數十 MB 至上 GB 的空間
雖然坊間有不少清理系統的軟件,不過多數都要付費
而且又要安裝及先經過一連串的設定
最後還得保佑程式不要有 bugs 誤刪系統檔 !

現在教大家一個一鍵清理系統垃圾的方法
這個程序其實是利用 DOS 指令批次刪除無用的暫存檔
所以既安全快捷又是免費的

首先打開記事本或其他文書工具
然後將以下內容貼上並另存新檔為 "clean.bat"
最後執行 clean.bat 就ok啦 !

@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%\s\*.*
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 清理系統完成!
echo. & pause
 

這裡有個現成的,給懶人用

>>> Download <<<




閱讀全文(1354) | 回覆(0) | 引用(208)

發表評論:
暱稱:
密碼:
網站:
標題:
Blog網站首頁 | 聯絡我們 | Blog註冊 | 部落格登錄

Powered by oBlog 2.52 © Copyright 2004. All rights reserved.
網頁執行時間:0.152 秒 網頁瀏覽次數:20226527 次