快速自动清除电脑缓存垃圾,测试不错。
编辑如下内容:
@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
另存为“清除垃圾.bat”
然后运行该文件即可。
本文提供了一种快速清理Windows系统垃圾文件的方法,通过一个批处理脚本,可以删除临时文件、日志、回收站等内容,有效释放磁盘空间,提升系统性能。只需将给出的代码保存为.bat文件并运行,即可自动完成系统垃圾的清理工作。
5168

被折叠的 条评论
为什么被折叠?



