window xp 清除系統垃圾,給C盤省空間。

@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 搞定了,HOHO!
echo. & pause

新建一個文本文檔,並把後綴名修改爲bat,把上面的copy到一個這個文件保存,放到自己的桌面,就可以定期去雙擊這個文件——“清除系統垃圾.bat”,進行清除不要的垃圾文件了。

發佈了18 篇原創文章 · 獲贊 12 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章