How to clean Windows temporary files of Win7 system? Win7 temporary file cleaning tutorial

  

We will find that when running windows7, the C drive will often have some temporary files. These files will not only make our computer slow down, but also take up our memory. The following small series will introduce Win7 to everyone. Temporary file cleanup tutorial!

Method Steps:

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

2, right click \\“My Computer\\”"\\“Properties\\”"\\“Advanced System Settings\\”"\\“Advanced\\”"Open "Environment Variables" dialog box, change user variables and system variables to D:\\UserData\\TEMP.


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 "Shutdown", 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 of Win7 cleaning Windows temporary files. To make Win7 system run more smoothly, it is necessary to clean these windows regularly. Temporary documents. More exciting tutorials please pay attention to this!

Copyright © Windows knowledge All Rights Reserved