Home  >  Article  >  System Tutorial  >  C drive junk cleaning guide: Detailed steps to completely clean up C drive junk

C drive junk cleaning guide: Detailed steps to completely clean up C drive junk

WBOY
WBOYforward
2024-01-15 15:21:311425browse

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%\temp

del /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. & pause

Copy the code into a text document, and then change the save as file name to LJ.bat.

怎么清理c盘垃圾 彻底清理c盘垃圾怎么操作


Clean up c drive picture-1

Then save the file to the desktop. Then click Open. You will see a series of windows for deleting junk files. This method is quite convenient and quick. However, be careful not to put important files on the C drive, otherwise they will be deleted and cannot be recovered!

怎么清理c盘垃圾 彻底清理c盘垃圾怎么操作


c Disk Picture-2

Method 2 (manually clean the disk)

Enter first my computer. Then click on C drive! Then select Properties and you will see a Disk Cleanup button. It’s worth cleaning up here, it’s best to turn off all programs. Otherwise the consequences will be serious.

怎么清理c盘垃圾 彻底清理c盘垃圾怎么操作


Clean up c drive Figure-3

Then the system will scan this drive for junk files. We can view the details of these files by clicking View Files.

怎么清理c盘垃圾 彻底清理c盘垃圾怎么操作


Completely clean up junk images-4

Click OK after selecting the files to be deleted.

怎么清理c盘垃圾 彻底清理c盘垃圾怎么操作


Clean up the junk picture-5

Then the system will delete the junk fragments from the disk.

怎么清理c盘垃圾 彻底清理c盘垃圾怎么操作


C drive picture-6

The above is the experience of completely cleaning up the C drive garbage.

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!

Statement:
This article is reproduced at:nndssk.com. If there is any infringement, please contact admin@php.cn delete