瀏覽器頻繁崩潰,事件檢視器顯示 SGPicFaceTool.exe 損壞映像錯誤,多為系統長期運行積累大量暫存檔、日誌、快取導致。編寫一支批次檔定期清理可有效緩解。




@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 %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 清除系統垃圾完成!
pause

清理垃圾.bat(編碼選 ANSI)。


注意: 批次檔會刪除大量暫存檔,執行前請關閉所有程式。若崩潰持續,建議檢查硬體(記憶體、硬碟)、更新顯卡驅動、或重裝瀏覽器/系統。