How to clean up Windows temporary files generated by Win7 system?

  

Many small partners know that during the running of Win7 system, some temporary files will be generated slowly. There are many kinds of temporary files, some of which are temporary Windows files. How to delete these temporary Windows files? What? Let's listen to Xiaobian one by one.

Method Steps:

1. Create D:UserDataTEMP directory on the D drive.

2, right click "My Computer" "" Properties"" "Advanced System Settings" "Advanced" "Open" "Environment Variables" dialog box, will users Both variables and system variables are changed to D:UserDataTEMP.

3, in the root directory of the C drive, create a new text document, write two lines of code:

RD %TEMP% /S/Q

MKDIR %TEMP%

Save as *.bat format (eg CleanTEMP.bat).

4, open the group policy (run gpedit.msc), open & ldquo; computer configuration - Windows settings - script (start /shutdown) & rdquo;, then open “ start & rdquo; or & ldquo; shutdown & rdquo ;, the effect is the same, one is to empty Temp when logging in, one is to clear when shutting down, here I choose “ Shutdown & rdquo;. Click “Add” Import the *.bat file you just made, click “OK” and set it to complete. After the shutdown, it will automatically clean the temporary files generated by the user.

The above is the method for Win7 to clear Windows temporary files. To make the Win7 system more smooth, it is necessary to clean these Windows temporary files regularly.

Copyright © Windows knowledge All Rights Reserved