制作一个windows垃圾清理小程序:
把下列代码保存为.bat文件(如垃圾清理.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
感谢 https://blog.youkuaiyun.com/qq_43558971/article/details/90705745
本文提供了一个用于清理Windows系统垃圾文件的批处理脚本。通过删除临时文件、日志、备份及缓存等,帮助释放磁盘空间,提升系统运行效率。
5211

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



