WIN7 one key to clean up the junk file code?

  
Save the following as a notepad edit. End file in bat format, double click to run
[plain]
@echo off
color 0a
title windows7 system garbage cleaning---
echo ** ** ** ** * ***** ** ** ** ***
echo ** ** ** ** ****** ** ** ** ***
echo.** **
echo.** **
echo.** Clean up system junk files, please wait …… **
echo ** **
echo.** **
Echo ** ** ** ** ****** ** ** ** ***
echo ** ** ** ** ****** ** ** ** ** *
echo Clean up junk files, the speed depends on the size of the computer file. When you don't see the end message,
echo Do not close this window.
echo is clearing system junk files, please later ……
echo delete patch backup directory
RD %windir%$hf_mig$ /Q /S
echo Put the name of the patch uninstall folder Save as 2950800.txt
dir %windir%$NtUninstall* /a:d /b >%windir%2950800.txt
echo Read the folder list from 2950800.txt and delete the folder
For /f %%i in (%windir%2950800.txt) do rd %windir%%%i /s /q
echo delete 2950800.txt
del %windir%2950800.txt /f /q< Br>echo delete the contents of the patch installation record (del /f /s /q %systemdrive%*.log already contains delete such files)
del %windir%KB*.log /f /q
echo Delete temporary files in the system disk directory
del /f /s /q %systemdrive%*.tmp
echo Delete temporary files in the system disk directory
del /f /s /q %systemdrive%*._mp
echo Delete the log file under the system disk directory
del /f /s /q %systemdrive%*.log
echo Delete the GID file in the system disk directory (belonging to the temporary file, the specific role is unknown)
Del /f /s /q %systemdrive%*.gid
echo delete scandisk (disk) in the system directory Trace the unused files
del /f /s /q %systemdrive%*.chk
echo delete the old file in the system directory
del /f /s /q %systemdrive%*.old< Br>echo delete unnecessary files of recycle bin
del /f /s /q %systemdrive%recycled*.*
echo delete backup files in system directory
del /f /s /q %windir%* .bak
echo Delete application temporary files
del /f /s /q %windir%prefetch*.*
echo Delete temporary files generated by system maintenance operations
rd /s /q % Windir%temp & md %windir%temp
echo delete the current user's COOKIE (IE)
del /f /q %userprofile%cookies*.*
echo delete the internet temporary file
del /f /s /q "%userprofile%local settingstemporary internet files*.*"
echo Delete current user daily operation temporary files
del /f /s /q "%userprofile%local settingstemp*.* "
echo delete access records (things in the documentation in the start menu)
del /f /s /q "%userprofile%recent*.*"
echo
echo ** *******************************
echo *************** ******************echo ** **
echo.** **
echo.** **
echo ** **
echo ** Congratulations! Clean up all done! **
echo.** **
echo ** **
echo.** **
echo ****************** ***************
echo ******************************* **
echo.

Copyright © Windows knowledge All Rights Reserved