Win7清除系统垃圾代码的方法
时间:2023-07-13 14:01:26
我们系统在使用过程中都会留下一些系统垃圾,那就得清理系统垃圾,绝大多数人清理系统垃圾应该都是通过软件进行清理吧!使用Win7系统的用户,他每次清理系统垃圾都是通过软件来进行清理,觉得这样很麻烦。问有没有快速清理系统垃圾的方法?那下面就和大家说一下Win7清除系统垃圾的方法。
步骤如下:
1、在桌面“开始”-》所有程序-》附件-》打开“记事本”。
![Win7清除系统垃圾代码的方法](https://img.aspxhome.com/file/2023/27/a232235_0.jpg)
2、新建一个记事本文件。
![Win7清除系统垃圾代码的方法](https://img.aspxhome.com/file/2023/27/a232235_1.jpg)
3、把下面两虚线之内的这段批处理代码直接复制到记事本中,
@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
提示1:
不要手写,那样可能会写错,直接复制就可以了。
提示2:
del /f /s /q %systemdrive%\recycled\*.*
这个代码是清理回收站的,自已判断,如果不需要清理回收站(FAT32格式下有效),可去掉这一行。
提示3:
del /f /q %userprofile%\cookies\*.*这一行是清理网页表单及登陆密码的,如果不想把登陆密码给清除了,也可以删掉这行。
![Win7清除系统垃圾代码的方法](https://img.aspxhome.com/file/2023/27/a232235_2.jpg)
4、在“文件”菜单下,选择“保存”或“另保存”。
![Win7清除系统垃圾代码的方法](https://img.aspxhome.com/file/2023/27/a232235_3.jpg)
5、(一)、先在文件名框中输入自定义的文件名。如“系统清理批处理代码.bat”,注意后面的扩展名要为bat。
(二)、保存文件类型选择“所有文件”。
(三)、执行“保存”。
![Win7清除系统垃圾代码的方法](https://img.aspxhome.com/file/2023/27/a232235_4.jpg)
6、最后当然是使用这个批处理文件,双击这个“系统清理批处理代码.bat”,开始清理,清理完以后,提示“按任何键继续。。。”,直接关掉窗口或按任何键都可以结束。
![Win7清除系统垃圾代码的方法](https://img.aspxhome.com/file/2023/27/a232235_5.jpg)
综上所述:Win7清除系统垃圾的方法就介绍到这里了,看了是不是很简单啊!有了这个方法,以后就在也不需要通过任何软件进行清理系统垃圾了。是不是很方便,又快速啊!那还犹豫什么,赶紧试一下上述的方法吧!此方法适合各种版本的系统,百试百灵。
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
excel中输入身份证号的方法
磁盘碎片整理完成后一直卡在0%的解决办法
![](https://img.aspxhome.com/file/2023/3/a300779_0s.jpg)
excel表格中怎样用mdeterm函数计算矩阵行列式值
电脑版wps文档如何设置一页纵向一页横向
![](https://img.aspxhome.com/file/2023/6/a183306_0s.png)
Win7纯净版ISO系统下载与安装教程
![](https://img.aspxhome.com/file/2023/26/a228331_0s.jpg)
「萌新上手Mac」Mac关闭应用,与Windows不一样
![](https://img.aspxhome.com/file/2023/8/a204318_0s.png)
如何利用PowerPoint制作漂亮的背景
Win10资源管理器内一片空白的可行解决方法
![](https://img.aspxhome.com/file/2023/29/a252929_0s.jpg)
电脑文件夹名字变成蓝色或者绿色怎么解决?
![](https://img.aspxhome.com/file/2023/1/a273804_0s.jpg)
excel2007快速锁定有公式单元格的方法
PassGuard是什么驱动?PassGuard.sys不兼容怎么删除
![](https://img.aspxhome.com/file/2023/6/a321060_0s.png)
怎样设置正文页码从1开始
搜狗输入法2015怎样快速输入
![](https://img.aspxhome.com/file/2023/5/a317866_0s.jpg)
Win10系统安装ChemWindow后无法运行的解决方法
![](https://img.aspxhome.com/file/2023/2/a286229_0s.jpg)
Win10 xbox怎么设置中文?Win10 xbox设置中文的方法
![](https://img.aspxhome.com/file/2023/26/a220367_0s.jpg)
win7系统提示"windows无法在此计算机上设置家庭组"问题怎么解决
![](https://img.aspxhome.com/file/2023/29/a256721_0s.jpg)
U盘位置不可用的解决方法
![](https://img.aspxhome.com/file/2023/2/a291046_0s.png)
360安全桌面怎么卸载?Win10无法卸载360安全桌面怎么办?
![](https://img.aspxhome.com/file/2023/26/a225659_0s.jpg)
WPS word一秒改变顺序排列小技巧
![](https://img.aspxhome.com/file/2023/0/a187460_0s.jpg)
想要多设备同步笔记?这6款云笔记软件了解一下!
![](https://img.aspxhome.com/file/2023/7/a210257_0s.jpeg)