系統(tǒng)臨時文件過多,也就造成了更多的垃圾留在電腦里面了,下面的給大家介紹如何清除系統(tǒng)垃圾文件,
快速清除系統(tǒng)垃圾
。1.打開記事本。
2.將下面的橫線內的代碼復制到記事本中,另存為一個文件擴展名為.bat的批處理文件:
==================================================
@echo off
echo 正在清除系統(tǒng)垃圾文件,請稍等......
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 清除系統(tǒng)垃圾完成!
echo. & pause
===================================================
3.以后,每次雙擊這個批處理文件的圖標,都會將系統(tǒng)垃圾清除;也可將此批處理文件圖標拖動并添加到“開始”→“程序”→“啟動”中,這樣,每次系統(tǒng)啟動后,都會自動清除一次上次系統(tǒng)運行時所產生的系統(tǒng)垃圾,