Win10系统一键清除垃圾bat制作方法
时间:2022-04-08 03:11:03
Win10系统电脑虽然很不错,但是用久了也会积累很多垃圾文件,只有定期清理才能够让电脑保持较快的运行速度。这里教大家自己制作bat批处理文件来清除垃圾,使用起来非常方便,不需要下载第三方清理工具。那么,Win10系统一键清除垃圾bat制作方法是什么样的呢。
操作步骤
1、鼠标右键单击,新建文本文档;
2、在文件中输入:
++++++++++++++++++++++++++++++++++++++++++++++
@echo off
color 0a
title windows10系统垃圾清理---
echo 清理垃圾文件,速度由电脑文件大小而定。在没看到结尾信息时
echo 请勿关闭本窗口。
echo 正在清除系统垃圾文件,请稍后。。。。。。
echo 删除补丁备份目录
RD %windir%\$hf_mig$ /Q /S
echo 把补丁卸载文件夹的名字保存成2950800.txt
dir %windir%\$NtUninstall* /a:d /b >%windir%\2950800.txt
echo 从2950800.txt中读取文件夹列表并且删除文件夹
for /f %%i in (%windir%\2950800.txt) do rd %windir%\%%i /s /q
echo 删除2950800.txt
del %windir%\2950800.txt /f /q
echo 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%\*.log已经包含删除此类文件)
del %windir%\KB*.log /f /q
echo 删除系统盘目录下临时文件
del /f /s /q %systemdrive%\*.tmp
echo 删除系统盘目录下临时文件
del /f /s /q %systemdrive%\*._mp
echo 删除系统盘目录下日志文件
del /f /s /q %systemdrive%\*.log
echo 删除系统盘目录下GID文件(属于临时文件,具体作用不详)
del /f /s /q %systemdrive%\*.gid
echo 删除系统目录下scandisk(磁盘扫描)留下的无用文件
del /f /s /q %systemdrive%\*.chk
echo 删除系统目录下old文件
del /f /s /q %systemdrive%\*.old
echo 删除回收站的无用文件
del /f /s /q %systemdrive%\recycled\*.*
echo 删除系统目录下备份文件
del /f /s /q %windir%\*.bak
echo 删除应用程序临时文件
del /f /s /q %windir%\prefetch\*.*
echo 删除系统维护等操作产生的临时文件
rd /s /q %windir%\temp & md %windir%\temp
echo 删除当前用户的COOKIE(IE)
del /f /q %userprofile%\cookies\*.*
echo 删除internet临时文件
del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"
echo 删除当前用户日常操作临时文件
del /f /s /q "%userprofile%\local settings\temp\*.*"
echo 删除访问记录(开始菜单中的文档里面的东西)
del /f /s /q "%userprofile%\recent\*.*"
echo
3、然后点击文件,选择另存为,将文件另存为“ Windows10一键垃圾清理.bat”,放置在任意位置;
4、双击文件便开始自动垃圾清理大约要几分钟时间即可。
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Word版式问题怎么快速解决
![](https://img.aspxhome.com/file/2023/6/17756_0s.png)
AirPods 2 使用技巧(基础篇)| 如何分辨两代 AirPods?
![](https://img.aspxhome.com/file/2023/8/a198108_0s.jpg)
Mac上如何将MOV转换为MP4?Wondershare UniConverter使用教程
![](https://img.aspxhome.com/file/2023/7/a211507_0s.jpeg)
Xmind思维导图教程二十二:如何在Xmind中更改结构?
![](https://img.aspxhome.com/file/2023/8/a202258_0s.jpeg)
mac版ai cc创建和应用线性、径向和任意形状渐变的具体教程
![](https://img.aspxhome.com/file/2023/9/a214239_0s.gif)
使用捷速PDF编辑器修改pdf文档教程
![](https://img.aspxhome.com/file/2023/2/15542_0s.jpg)
WPS word 题注及表目录制作 实例图解教程
![](https://img.aspxhome.com/file/2023/6/a186666_0s.png)
Excel2019函数mid怎么用?Excel2019函数mid使用方法
![](https://img.aspxhome.com/file/2023/0/a141470_0s.jpg)
Win7系统如何安装KB3035583补丁?
![](https://img.aspxhome.com/file/2023/27/a230636_0s.jpg)
Win11如何添加新网络?Win11添加新网络的方法
![](https://img.aspxhome.com/file/2023/27/a236868_0s.jpg)
如何关闭某些Win快捷键
![](https://img.aspxhome.com/file/2023/29/a262288_0s.png)
word2007如何设置正文格式
目前没有重复所以显示的是1 3.接着下拉填充公式 4.这个时候我们就会发现有重复的数值会根据不同的重复量显示不同的数字
如何在Mac上使用表情符号?
![](https://img.aspxhome.com/file/2023/9/a204589_0s.jpeg)
使用CrossOver for Mac如何从光盘或安装程序安装一个尚未收录的程序
![](https://img.aspxhome.com/file/2023/3/a212983_0s.png)
Win7宽带连接提示错误718该怎么办?
![](https://img.aspxhome.com/file/2023/27/a233660_0s.jpg)
WSP字体大小怎么设置
![](https://img.aspxhome.com/file/2023/0/a167540_0s.png)
微软会强制用户升级Win11系统吗?
![](https://img.aspxhome.com/file/2023/27/a236791_0s.jpg)
WIN10系统免费升级到什么时候 Win10在8月收费
![](https://img.aspxhome.com/file/2023/28/a244741_0s.jpg)
word 表格中怎样快速交换两行的位置?
![](https://img.aspxhome.com/file/2023/0/35650_0s.png)