When we use the computer, we will feel that the computer's response speed is slower after a long time. This is mainly caused by the accumulation of too much garbage on the c drive. When the cache of software and web browsing accumulates to a certain amount, it will Make the computer run slowly. So how to clean up the C drive garbage? Below, the editor will share with you the steps to completely clean up the C drive junk.
When using a computer, you will feel that the computer's response speed is slower after a long time. Therefore, surfing the Internet every day will bring a lot of temporary files to the computer. If these junk files are not cleaned up, they will affect the computer over time. operating speed. So how to quickly clean up C drive junk? Below, the editor will explain to you how to completely clean up the C drive junk.
How to completely clean up the c drive garbage
I wrote a bunch of code. The code is as follows:
@echo off
echo is clearing system junk files, please wait...
del /f /s /q %systemdrive% \*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive% \*.old
del /f /s /q %systemdrive%\recycled\.
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\.
##rd /s /q %windir%\temp & md %windir%\tempdel /f /q %userprofile%\cookies\.
del /f /q %userprofile%\recent\.
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\."
del /f /s /q "%userprofile% \Local Settings\Temp\."
del /f /s /q "%userprofile%\recent\."
echo Clear System LJ is completed! echo. & pauseCopy the code into a text document, and then change the save as file name to LJ.bat.The above is the detailed content of C drive junk cleaning guide: Detailed steps to completely clean up C drive junk. For more information, please follow other related articles on the PHP Chinese website!