Win8如何不借助第三方软件使用批处理删除缓存文件
时间:2022-06-06 17:30:09
缓存积累到一定的程度就会变成垃圾文件,同时也加重了系统的负担,下面为大家介绍一个不借助第三方软件就可以快速清理系统缓存的方法
当系统缓存积累到一定的程度就会变成垃圾文件,同时也加重了系统的负担,拖慢了系统的运行速度,虽然可以通过清理软件来清除这些缓存文件,但是这里有一个更好的方法,不借助第三方软件就可以快速清理系统缓存。
Win8批处理删除缓存文件的方法:
1、在Windows8桌面上按鼠标右键新建“文本文档”。
2、复制以下代码粘贴到记事本内。
复制代码代码如下:
@echo off
color 1e
for /r c:\ %%a in (*.tmp *.chk *.gid *._mp *.old *.bak *.log) do del /f /s /q “%%a”
for /r c:\windows\temp %%a in (*.*) do del /f /s /q “%%a”
for /r c:\windows\Prefetch %%a in (*.*) do del /f /s /q “%%a”
for /r %userprofile%\AppData\Local\Temp %%a in (*.*) do del /f /s /q “%%a”
for /r “%localappdata%\Microsoft\Windows\Temporary Internet Files” %%a in (*.*) do del /f /s /q “%%a”
for /r %localappdata%\Microsoft\Windows\History %%a in (*.*) do del /f /s /q “%%a”
for /r %appdata%\Microsoft\Windows\Cookies %%a in (*.*) do del /f /s /q “%%a”
for /r %windir%\SoftwareDistribution\Download %%a in (*) do del /f /s /q “%%a”
for /r “%windir%\Downloaded Program Files” %%a in (*) do del /f /s /q “%%a”
for /r %windir%\System32\LogFiles %%a in (*) do del /f /s /q “%%a”
del /f /s /q %systemdrive%\hiberfil.sys
pause & exit
这样按任意键就退出了
3、将“记事本”后缀名改为“.bat”。
4、最后双击“.bat”运行文件即可。
只要把上述的代码复制保存到记事本中,重新命名后运行就可以达到快速删除Win8系统缓存文件的效果,这个方法最方便的地方就是不用借助第三方软件。
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Excel 2007活动单元格找四邻
Win10系统打开永劫无间游戏黑屏怎么办?
![](https://img.aspxhome.com/file/2023/26/a220242_0s.jpg)
如何在word文档中插入并设置封面页
![](https://img.aspxhome.com/file/2023/6/33036_0s.jpg)
Win10安装打印机找不到指定模块如何解决?
![](https://img.aspxhome.com/file/2023/26/a222669_0s.jpg)
在WPS演示中如何利用创建播放器方式插入flash
![](https://img.aspxhome.com/file/2023/2/a167172_0s.jpg)
Win10系统怎么禁用Win键?Win10系统禁用Windows徽标键的方法
![](https://img.aspxhome.com/file/2023/26/a224952_0s.jpg)
在Excel中怎样使用行列号进行计算
![](https://img.aspxhome.com/file/2023/3/37873_0s.png)
Win10修改默认打印机的方法
![](https://img.aspxhome.com/file/2023/26/a227360_0s.jpg)
excel批量替换公式教程
WPS Excel中如何找出不符合条件的单元格
![](https://img.aspxhome.com/file/2023/8/a186228_0s.jpg)
Office Excel2019/365快捷键常用大全3-Excel其他操作快捷键
![](https://img.aspxhome.com/file/2023/3/a154143_0s.jpg)
通知中心排序太乱?iOS 调整通知中心手动排序教程
Word2007图片显示不全解决方法
![](https://img.aspxhome.com/file/2023/8/22028_0s.jpg)
如何双面打印word文档?
![](https://img.aspxhome.com/file/2023/6/33606_0s.png)
WPS表格怎样制作成绩表同分同名次
AppleCare+和普通的Applecare有什么区别?
WPS怎么画带弧边的三角形图形?
![](https://img.aspxhome.com/file/2023/3/a166433_0s.png)
word查找替换怎么操作?
![](https://img.aspxhome.com/file/2023/5/34575_0s.gif)
Word2016文档的页眉横线怎么去掉
![](https://img.aspxhome.com/file/2023/7/17717_0s.jpg)