查看: 230|回复: 0

[Win8] Win8如何不借助第三方软件使用批处理删除缓存文件

[复制链接]

9

主题

0

回帖

27

积分

技术1级

金币
18
阅读权限
10
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2011-1-6
QQ
发表于 2014-6-22 23:42:32 | 显示全部楼层 |阅读模式
当系统缓存积累到一定的程度就会变成垃圾文件,同时也加重了系统的负担,拖慢了系统的运行速度,虽然可以通过清理软件来清除这些缓存文件,但是这里有一个更好的方法,不借助第三方软件就可以快速清理系统缓存。

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系统缓存文件的效果,这个方法最方便的地方就是不用借助第三方软件。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部