
bat垃圾清理代碼
nclick="copycode($('code0'));">復(fù)制代碼
- @echo off
- title垃圾清理
- echo Windows版本%OS%
- echo 如有重要log文件,請(qǐng)轉(zhuǎn)為txt或dic文本文檔格式
- echo 準(zhǔn)備好了嗎(按任意鍵開(kāi)始) & pause > nul
- echo ~ >>once_do.txt
- echo 正在清理系統(tǒng)垃圾文件,請(qǐng)稍等......
- echo %systemdrive%*.tmp >>once_do.txt
- del /f /s /q %systemdrive%*.tmp
- echo %systemdrive%*._mp >>once_do.txt
- del /f /s /q %systemdrive%*._mp
- echo %systemdrive%*.log >>once_do.txt
- del /f /s /q %systemdrive%*.log
- echo %systemdrive%*.gid >>once_do.txt
- del /f /s /q %systemdrive%*.gid
- echo %systemdrive%*.chk >>once_do.txt
- del /f /s /q %systemdrive%*.chk
- echo %systemdrive%*.old >>once_do.txt
- del /f /s /q %systemdrive%*.old
- echo %systemdrive%recycled*.* >>once_do.txt
- del /f /s /q %systemdrive%recycled*.*
- echo %systemdrive%*.bak >>once_do.txt
- del /f /s /q %windir%*.bak
- echo %systemdrive%prefetch*.* >>once_do.txt
- del /f /s /q %windir%prefetch*.*
- rd /s /q %windir%temp & md %windir%temp
- echo %userprofile%cookies*.* >>once_do.txt
- del /f /q %userprofile%cookies*.*
- echo %userprofile%recent*.* >>once_do.txt
- del /f /q %userprofile%recent*.*
- echo %userprofile%Local SettingsTemporary Internet Files*.* >>once_do.txt
- del /f /s /q %userprofile%Local SettingsTemporary Internet Files*.*
- echo %userprofile%Local SettingsTemp*.* >>once_do.txt
- del /f /s /q %userprofile%Local SettingsTemp*.*
- echo %userprofile%recent*.* >>once_do.txt
- del /f /s /q %userprofile%recent*.*
- echo 清理系統(tǒng)垃圾完成!
- echo 清理系統(tǒng)垃圾完成! >>once_do.txt
- pause

