什么是系统垃圾?如何使用bat程序制作一键清理系统垃圾工具

如题所述

系统垃圾,win系统的遗留文件(绝对不会再被使用),我们下面进行系统垃圾分类。系统垃圾能想到的归为以下类别,注意,是绝对不会再次被使用。目前能想到的只有一个,欢迎补充:

安装后又卸载掉的程序残留文件及注册表的键值,在某些极端情况下可能会导致问题,如软件卸载不完全,重新安装软件失败。

这些都是对系统毫无作用的文件。只能给系统增加负担。所以叫垃圾。


@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
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”

温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网