各位朋友是否有注意到,无论电脑配置有多高,使用一段时间后,电脑的运行速度总会变慢,这是因为电脑中积累了无法清理的垃圾缓存。对于我们这些电脑重度使用者来说,怎能容忍电脑运行速度变得迟缓呢?今天,我将与大家分享一个清理电脑系统盘的小工具,它是一个格式为.bat的批处理文件,适用于windows系统用户。
【图文无关】
【1】:创建一个新的记事本文件
在电脑屏幕左下角,点击“开始→程序→Windows附件→记事本”,选择“另存为”,将路径设置为“桌面”,文件类型选择“所有文件”,文件命名为“LJ.bat”,请务必确保文件后缀为.bat。
【2】:将下面的文本原样复制到你的记事本中
@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 清除系统LJ完成!
echo. & pause
【3】:将记事本文件命名为:LJ.bat(请复制此名称)并保存到桌面
【图文无关】
【4】:返回桌面,双击【LJ.bat】文件即可运行
【5】:当看到以下文字时,即表示成功运行,直到最后显示【清除系统LJ完成】。


以上就是Windows一键清理系统垃圾【.bat】的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号