Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

记事本批处理一键清理系统垃圾:清临时文件/日志/缓存/回收站/Cookies/IE临时文件,单次释放600MB+

編輯:Windows XP 系統介紹

将以下代码存为清理系统垃圾.bat(保存类型选“所有文件”),运行即可:

@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

参数说明:/f强制删除只读,/s递归子目录,/q静默无确认。变量%systemdrive%、%windir%、%userprofile%自动适配系统路径。

覆盖范围:系统盘临时文件、安装残留、chkdsk碎片、回收站、系统备份、Prefetch索引、系统Temp、用户Cookies、最近文档、IE缓存、用户Temp。

作者多次实测无异常,单次最大释放600MB+。隔段时间跑一次,磁盘保持瘦身。网上广泛流传,安全可靠。**注意:不清理浏览器非IE缓存、不清理下载文件夹、不触动用户文档。**

Copyright © Windows教程網 All Rights Reserved