是否注意到我們的電腦系統磁盤的可用空間正在一天天在減少呢?

是不是動作一天比一天遲緩呢?

 

在Windows在安裝和使用過程中都會產生相當多的垃圾文件,包括臨時文件 (如:*.tmp、*._mp)日誌文件(*.log)、臨時幫助文件(*.gid)、磁盤檢查文件(*.chk)、臨時備份文件 (如:*.old、*.bak)以及其他臨時文件。特別是如果一段時間不清理IE的臨時文件夾「Temporary Internet Files」,其中的緩存文件有時會佔用上百MB的磁盤空間。這些LJ文件不僅僅浪費了寶貴的磁盤空間,嚴重時還會使系統運行慢如蝸牛。現在就讓我們一起 來快速清除系統垃圾吧!!

 

下面是步驟很簡單就兩步!


打開「記事本」,把下面的字複製進去,點「另存檔案」,把文件名定為「清除系統垃圾.bat」就完成,記住後副檔名一定要是.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%\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 清除系統垃圾完成!
echo. & pause ===========================================================================
複製上面的字~~~

以後只要雙擊運行該文件,當屏幕提示「清除系統垃圾完成!就還你一個「苗條」的系統了!!到時候再看看你的電腦,是不是急速如飛呢?


解釋:

這只是一個把刪除的指令作成批次的檔型式

del /f /s /q %systemdrive%*.tmp

刪除磁碟中副檔名為TMP的暫存檔案
del /f /s /q %systemdrive%*._mp
刪除磁碟中副檔名為_MP的暫存檔案

del /f /s /q %systemdrive%*.log

刪除磁碟中副檔名為LOG的紀錄檔案
del /f /s /q %systemdrive%*.gid

刪除磁碟中副檔名為GID的暫存檔案
del /f /s /q %systemdrive%*.chk

刪除磁碟中副檔名為CHK的暫存檔案

這個都是磁碟掃描之後的檔案基本上沒

什麼作用
del /f /s /q %systemdrive%*.old
刪除磁碟中副檔名為OLD的備份檔案

del /f /s /q %systemdrive%recycled*.*
刪除磁碟中資源回收筒的所有檔案

del /f /s /q %windir%*.bak

刪除磁碟中副檔名為BAK的備份檔案
del /f /s /q %windir%prefetch*.*
rd /s /q %windir%temp & md %windir%tempdel /f /q %userprofile%cookies*.*
del /f /q %userprofile%recent*.*

刪除userprofile回收筒的所有檔案
del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"

刪除所有瀏覽器的暫存檔案
del /f /s /q "%userprofile%Local SettingsTemp*.*"

刪除暫存資料夾裡的所有檔案
del /f /s /q "%userprofile%recent*.*"

所以基本上他批次檔寫的內容都是刪除一些沒用的東西

真的可以讓你的硬碟多不少空間。

 

引用:http://tw.myblog.yahoo.com/jw!MW0Fe.6TQE7IPitBHXZHuiVWlg--/article?mid=19344

arrow
arrow
    全站熱搜

    s982006 發表在 痞客邦 留言(0) 人氣()