2012年 06月 03日
垃圾清除器
選擇"新增"→記事本 or 文字文件
新增後打開檔案將以下的紅色字體複製進去,
@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
複製後點"檔案"→另存新檔,
把文件名稱改為「清除垃圾.bat」,記住副檔名一定要是.bat
這樣垃圾清除器的批次檔就製作完成了!
關機時,只要雙擊執行"清除垃圾.bat"內的批次指令,就會把垃圾暫存檔清光。
by cwj36
| 2012-06-03 20:49
| 電腦維護