如何删除电脑的缓存文件(电脑清理缓存文件)
admin
2022-11-28 12:47:53

 许多Win8用户都知道当系统运行速度受到影响的时候用第三方软件来清理系统缓存,那么除了使用第三方软件还有别的方法吗?下面小编就介绍下批处理删除缓存文件的方法。

 

电脑批处理删除缓存文件的方法-1

  方法:

  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:windowstemp %%a in (*.*) do del /f /s /q “%%a”

  for /r c:windowsPrefetch %%a in (*.*) do del /f /s /q “%%a”

  for /r %userprofile%AppDataLocalTemp %%a in (*.*) do del /f /s /q “%%a”

  for /r “%localappdata%MicrosoftWindowsTemporary Internet Files” %%a in (*.*) do del /f /s /q “%%a”

  for /r %localappdata%MicrosoftWindowsHistory %%a in (*.*) do del /f /s /q “%%a”

  for /r %appdata%MicrosoftWindowsCookies %%a in (*.*) do del /f /s /q “%%a”

  for /r %windir%SoftwareDistributionDownload %%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%System32LogFiles %%a in (*) do del /f /s /q “%%a”

  del /f /s /q %systemdrive%hiberfil.sys

  pause & exit

  这样按任意键就退出了

  3、将“记事本”后缀名改为“.bat”。

  4、最后双击“.bat”运行文件即可。



以上就是电脑批处理删除缓存文件的方法,希望大家喜欢,请继续关注办公百科网。

相关内容

热门资讯

吸猫伐是什么意思 吸猫是吸哪里 作为铲屎官,相信对于网络上流行的各种与猫咪相关的梗都是了然于心的,什么吸猫啦,撸猫啦,云养猫啦……等...
重庆属于哪个省份的 重庆在中国... 重庆有多大,大到超出我们的想象,重庆作为我国4个直辖市之一,印象里应该跟京津沪面积差不多,可事实上却...
十字架的车标是什么车 十字架车... 作为一款经典的礼宾车,林肯领袖一号十字盾形车标镶嵌在车头的正中位置,特别醒目,极有视觉冲击力,磅礴大...
猫咪吃了塑料袋怎么办 猫咪误食... 你知道吗?塑料袋放久了会长猫哦!要说猫咪对塑料袋的喜爱程度完完全全可以媲美纸箱家里只要一有塑料袋的响...
应用未安装解决办法 平板应用未... ---IT小技术,每天Get一个小技能!一、前言描述苹果IPad2居然不能安装怎么办?与此IPad不...