系统之家 - 系统光盘下载网站!

当前位置:系统之家 > 系统教程 > Win8如何使用批处理删除缓存文件

Win8如何使用批处理删除缓存文件

时间:2014-07-30 09:32:35 作者:jiaoru 来源:系统之家 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: https://m.xitongzhijia.net/xtjc/20140730/24664.html 手机查看 评论

  当系统缓存积累到一定的程度就会变成垃圾文件,同时也加重了系统的负担,拖慢了系统的运行速度,虽然可以通过清理软件来清除这些缓存文件,但是这里有一个更好的方法,不借助第三方软件就可以快速清理系统缓存。

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

发表评论

0

没有更多评论了

评论就这些咯,让大家也知道你的独特见解

立即评论

以上留言仅代表用户个人观点,不代表系统之家立场

其他版本软件

热门教程

人气教程排行

Win8系统推荐

官方交流群 软件收录