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

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

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

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

相关文章:

你感兴趣的文章:

标签云: