在Windows在安裝和使用過程中都會產生相當多的垃圾文件外掛
包括臨時文件、日誌文件、臨時幫助文件、磁盤檢查文件、臨時備份文件 特別是如果一段時間不清理IE的臨時文件夾,其中的緩存文件有時會佔用上百MB的磁盤空間
1.先把下面ㄉ文法 複製 到記事本 (交法 還有 往下看)
===========================================================分隔線
@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 SettingsTemporary Internet Files*.*”
del /f /s /q ”%userprofile%Local SettingsTemp*.*”
del /f /s /q ”%userprofile%recent*.*”
echo 清除系統垃圾完成!
echo. & pause
==========================================================分隔線
然後另存新檔,文件名定為「清除系統垃圾.bat」
再來就點兩下,大概跑了不到一分鐘
這樣就會空出很多空間,也可以讓電腦跑順一點
以上轉為XX論壇 Z016031大大ㄉ
文章定位: