Win10清理垃圾代码有哪些?Win10清理垃圾in10清理垃圾的运行代码汇总
时间:2023-12-14 09:50:09
Win10清理垃圾代码有哪些?电脑使用时间长了就会堆积很多的垃圾占用内存使得电脑变得越来越卡,影响使用体验,今天就给大家带来一个简单的方法用代码清理垃圾,下面就一起来学习一下吧。
Win10清理垃圾的代码
1、右击桌面空白处,选择“文本文档”
2、打开文本文档
3、复制代码
@echo off
pause
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
4、黏贴至文本文档
5、点击“另存为”
6、更改文件名为 系统垃圾清理.bat
7、双击运行“系统垃圾清理.bat”
8、按下任意键
9、清理开始
10、出现“系统垃圾清理完成”即可
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
excel 如何随机提取数字
![](https://img.aspxhome.com/file/2023/8/a154588_0s.jpg)
Win10文件夹背景变成黑色怎么办
![](https://img.aspxhome.com/file/2023/3/a297006_0s.jpg)
word/excel中怎么快速的打出乘除符号(×÷)?
![](https://img.aspxhome.com/file/2023/9/28029_0s.jpg)
Win7系统中通过ati显卡调节屏幕大小的方法
![](https://img.aspxhome.com/file/2023/28/a241493_0s.png)
wps文字怎么将表格美化
电脑版WPS表格怎么从左侧提取字符
![](https://img.aspxhome.com/file/2023/5/a182905_0s.png)
WPS excel一次性输入全年的日期 实现教程
![](https://img.aspxhome.com/file/2023/7/a187117_0s.jpg)
Excel表格怎么排序号123456
![](https://img.aspxhome.com/file/2023/7/a153157_0s.jpg)
Win10开机后拒绝访问怎么办?Win10开机后拒绝访问的解决方法
![](https://img.aspxhome.com/file/2023/26/a219465_0s.png)
通过组策略关闭win7系统U盘自启动图文教程
![](https://img.aspxhome.com/file/2023/29/a254939_0s.jpg)
如何快速推广qq群?qq群推广方法
![](https://img.aspxhome.com/file/2023/8/a340157_0s.jpg)
如何更改wps表格中文本的段落间距(行距)?
![](https://img.aspxhome.com/file/2023/2/a170142_0s.png)
win10系统设置打开PrtScn按键进行屏幕截图的方法
![](https://img.aspxhome.com/file/2023/29/a262118_0s.jpeg)
Win7运用注册表降低预览延迟如何解决
![](https://img.aspxhome.com/file/2023/4/a311977_0s.jpg)
M1 vs M1 Pro vs M1 Max哪个好?
![](https://img.aspxhome.com/file/2023/1/a204161_0s.jpeg)
如何制作Windows 8.1安装U盘并保留原有数据
![](https://img.aspxhome.com/file/2023/29/a254830_0s.jpg)
制作封面.扉页和目录--Word 2007书籍排版完全手册9
如何使用VLC媒体播放器下载YouTube视频?
![](https://img.aspxhome.com/file/2023/7/a208607_0s.png)
Excel自动插入序号
腾讯会议怎么换背景?腾讯会议设置虚拟背景教程
![](https://img.aspxhome.com/file/2023/7/a327253_0s.jpg)