How to clear computer cache?

I believe that many friends who often use computers must have found that when our computer is used for a long time, the computer will become slower and slower, and it will become abnormally slow when turning on and off, or even opening and using software. The reason is that the computer's cache is too full, so many netizens are asking how to clear the computer 's cache, so the following editor will tell you!

  Cache is used to store temporary files during file operations, such as installing software, decompressing *.rar archives and other operations. The generated cache files will be copied to the Temp directory, and then copied to the destination folder. Day after day, month after month, there are more and more junk files in the Temp directory, wasting disk space. Seriously, these small files will gradually form disk fragments, affecting the read and write speed. So how to clean up the Temp folder, you can manually clear it as follows.

  The Temp folder is distributed in two places, one is C:\WINDOWS\TEMP, which is common to the system, and the other is under the configuration folder of the current login account, usually the account logged in at C:\Documents and Settings\ \Local Settings\Temp. They are all in the C drive, which is very unfavorable for controlling disk fragmentation, so the first thing we need to do is to uniformly move the Temp to a partition other than the C drive. Here we take the D drive as an example.

  1. Create D:\UserData\TEMP directory on D drive

  2. Right-click "My Computer", "Properties", "Advanced", open the "Environment Variables" dialog box, and change both user variables and system variables to D:\UserData\TEMP, as shown below:

How to Clear Computer Cache

  3. Create a new text document and write two lines of code in it:

  RD %TEMP% /S/Q

  MKDIR %TEMP%

  Then save it as *.bat format, so as long as you open the file, it will automatically empty the crumbs under the Temp folder.

  04. You can also let Windows automatically clear, as follows:

  Open Group Policy (run gpedit.msc), open "Computer Configuration - Windows Settings - Script (Startup/Shutdown)" in turn, and then open "Startup" or "Shutdown" at will, the effect is the same, one is to clear Temp when logging in and the other is to shut down When it is emptied, here I choose "shutdown". Click "Add" to import the *.bat file you just made, click "OK" and everything is done.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326437221&siteId=291194637