How to clean Windows temporary files of Win7 system?

  

The Win7 system will generate some Windows temporary files during the running process. These files are stored in a directory on the C drive. These files are generally useless, but they accumulate more. The space occupied by the C drive causes the system to slow down. So how do you clean up these Windows temporary files?

Method Steps:

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

2, right-click the \\ & ldquo; My Computer \\ & rdquo; "\\ & ldquo; attribute \\ & rdquo;" \\ & ldquo; Advanced System Settings \\ & rdquo; "\\ & ldquo; Senior \\ & rdquo;" Open "Environment Variables" dialog box, change user variables and system variables to D:\\UserData\\TEMP.


3, under the root directory of C, a new text document, written 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), in order to open & ldquo; -Windows Computer Configuration Settings - Scripts (Startup /Shutdown) & rdquo ;, then just turn on & ldquo; & rdquo start 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.





These are the Win7 remove Windows temporary files of process steps, and want to make Win7 system more smoothly, it is necessary to periodically clean up the Windows temporary file.

Copyright © Windows knowledge All Rights Reserved