How to remove junk files in win8 system

  
1. Right click on the Windows 8 desktop and create a new “text document”.

2. Copy the following code into Notepad.
@echo off
color 1e
for /rc: %%a in (*.tmp *.chk *.gid *._mp *.old *.bak *.log) do del /f /s /q "%%a"
for /rc:windowstemp %%a in (*.*) do del /f /s /q "%%a"
for /rc: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

3, will “Notepad & Rdquo; The suffix name is changed to “.bat”.

4, and finally double-click "ld." bat & rdquo; run the file.

zh-CNzh-CN
Copyright © Windows knowledge All Rights Reserved