技術(shù)員聯(lián)盟提供win764位系統(tǒng)下載,win10,win7,xp,裝機純凈版,64位旗艦版,綠色軟件,免費軟件下載基地!

當(dāng)前位置:主頁 > 教程 > win8教程 >

Win8批量刪除緩存文件的過程

來源:技術(shù)員聯(lián)盟┆發(fā)布時間:2017-11-02 12:45┆點擊:

  許多Win8用戶都知道當(dāng)系統(tǒng)運行速度受到影響的時候用第三方軟件來清理系統(tǒng)緩存,那么除了使用第三方軟件還有別的方法嗎?下面小編就介紹下批處理刪除緩存文件的方法。

Win8批量刪除緩存文件的過程

  方法:

  1、在Windows8桌面上按鼠標(biāo)右鍵新建“文本文檔”。

  2、復(fù)制以下代碼粘貼到記事本內(nèi)。

  @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批處理刪除緩存文件的方法,用戶可以在第三方軟件和此方法中選擇自己喜歡的方法進行操作。