Get the App
SLTechnology News&Howtos  ›  Development  › 

How to safely remove the garbage from disk C

Shulou Source: shulou.com Published: 2022-06-03 07:18:40 11月15日 Update

This article mainly introduces "how to remove the garbage of disk C safely". In the daily operation, I believe that many people have doubts about how to remove the garbage of disk C safely. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to remove the garbage of disk C safely"! Next, please follow the editor to study!

Create a new notepad and enter the following:

The code is as follows:

@ echo off

Echo is cleaning up junk files on the system. Please wait a moment.

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 clearance system complete!

Echo. & pause

Open or notepad to see clearly here and finally save it, and then change the name to "clear system .bat"

Ok! That's how your scavenger was made!

In the future, just double-click to run the file, when the screen prompt "clear the system is complete!" you will have a "slim" system! then take a look at your computer, is it flying fast?

It is true that a lot of junk files can be cleaned up, but after I try, it seems that the database connection driver in the IIS service has been deleted, which will cause errors in ASP programs whenever database connections are involved:

At this point, the study on "how to safely remove the garbage from disk C" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Garbage systems security learning files data databases more notepad help practical slim successful then next code content then screen article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Huawei MariaDB MySQL