快速清理Windows垃圾和注册表的方法
时间:2022-02-22 03:42:02
这篇文章主要介绍了快速清理Windows垃圾和注册表的方法的相关资料,需要的朋友可以参考下
如何快速清理Windows垃圾和注册表
大家可以新建个文本文档,将下面这些代码复制进去
@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\*.*
del /s /q /q %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完成!
保存后将文本文档原有的.txt扩展名改成.bat,当你觉得系统有垃圾了,或者运行缓慢了,双击执行它就OK了。
为什么小编很少用那些垃圾清理的第三方软件呢?那是因为系统自带的命令比较好用,另外老迈的电脑可带不起那些没事就全家桶的东西,仅仅因为需要一个功能就安装它们,实在是得不偿失。
至于清理注册表的方式,CFan小编常用的有两种,第一种就是代码啦。
以管理员身份运行命里提示符后,把下面那些代码复制进去回车执行
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" /v "BranchName" /d "fbl_release" /t REG_SZ /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" /v "ThresholdRiskLevel" /d "low" /t REG_SZ /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" /v "ThresholdInternal" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" /v "ThresholdOptedIn" /f
就可以将注册表恢复到最初状态,但不建议大家经常使用,它们会使许多安装过的软件失效,或一些需要注入注册表的工具无法正常工作。
![快速清理Windows垃圾和注册表的方法](https://img.aspxhome.com/file/2023/6/a320848_0.png)
想要检查注册表是不是最初始的状态,看这个子项就知道了
另外一种就是大名鼎鼎的CCleaner,并不是小编说外来的和尚好念经,而是它相对比较干净,用起来相对简单,清理注册表多余选项也非常地道。
![快速清理Windows垃圾和注册表的方法](https://img.aspxhome.com/file/2023/6/a320848_1.jpg)
而且在清理注册表之前,可以对注册表原有项目进行备份,清理之后有问题随时恢复就好,它可不像某些软件,对你的电脑总是做些不可描述的事情哦。工具软件教程
![快速清理Windows垃圾和注册表的方法](https://img.aspxhome.com/file/2023/6/a320848_2.png)
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
win2003中浏览器每次网络访问都会有安全警告怎么办?
![](https://img.aspxhome.com/file/2023/29/a261179_0s.jpg)
安装NVIDIA显卡驱动提示安装无法继续的解决方法
![](https://img.aspxhome.com/file/2023/4/a305755_0s.jpg)
如何在Mac 上更改冲突的键盘快捷键?
![](https://img.aspxhome.com/file/2023/3/a207393_0s.jpeg)
win11操作中心在哪里打开?win11操作中心打开的方法
![](https://img.aspxhome.com/file/2023/27/a235151_0s.jpg)
Excel如何轻松得到有规律的数字
![](https://img.aspxhome.com/file/2023/1/a142541_0s.png)
Excel2010打印预览时怎样手动调整页边距?
![](https://img.aspxhome.com/file/2023/4/a156494_0s.jpg)
金山WPS万能百宝箱怎么用 金山WPS万能百宝箱安装使用方法
微软宣布Office 2021 今年晚些时候可在Windows和macOS上使用
![](https://img.aspxhome.com/file/2023/2/16882_0s.jpg)
【mac色彩校正软件】3D LUT Creator Pro mac常见问题
WPS表格将文本格式转为数字格式图解
word数字转换大写
![](https://img.aspxhome.com/file/2023/7/34617_0s.gif)
Win7升级sp1黑屏提示错误代码0xc0000034
![](https://img.aspxhome.com/file/2023/29/a252284_0s.jpg)
Win7网络连接出现Null错误怎么办?
![](https://img.aspxhome.com/file/2023/27/a231640_0s.jpg)
Win10系统浏览器提示“已完毕但网页上有错误”怎么解决?
![](https://img.aspxhome.com/file/2023/4/48664_0s.jpg)
打印时如何在WPS表单的每页上显示页眉 默认情况下 只有第一页有页眉
![](https://img.aspxhome.com/file/2023/6/a169546_0s.jpg)
WPS excel表格中零值的另一种表现形式
![](https://img.aspxhome.com/file/2023/9/a185369_0s.jpg)
网络适配器中没有无线网络连接怎么办?
![](https://img.aspxhome.com/file/2023/30/a265714_0s.jpg)
Win7怎么安装双系统?
![](https://img.aspxhome.com/file/2023/4/a304073_0s.jpg)
Win10系统修复防火墙具体操作教程
![](https://img.aspxhome.com/file/2023/30/a264682_0s.png)