首先需要指定UTF-8
chcp 65001
@echo off
@echo 删除缓存
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
@echo 删除日志
del /f /s /q %systemdrive%\*.log
@echo 删除微软帮助冗余
del /f /s /q %systemdrive%\*.gid
@echo 删除硬盘冗余
del /f /s /q %systemdrive%\*.chk
@echo 删除备份冗余
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 system is clean 系统已经清理
echo. & pause