Windows8系统中怎么快速清除缓存和垃圾呢?下面教大家一个比较快速的方法清楚Windows8系统缓存的垃圾文件。
方法/步骤
@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 emp %%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
将“记事本”后缀名改为“.bat”。
最后双击“.bat”运行文件即可