How are Windows temp files generated by the Win7 system cleaned up?

Source: Internet
Author: User
Tags windows temp files

Many partners know that in the operation of the Win7 system, will slowly produce some temporary files, and there are many kinds of temporary files, some of which are Windows temp files, how to delete these windows temporary files? Let's listen to the small one by one.

Method steps:

1. Set up D:userdatatemp catalogue in D disk.


2. Right-click "My Computer" "Properties" "Advanced system Settings" "Advanced" opens the Environment Variables dialog box, changing both the user variable and the system variable to d:userdatatemp.



3, in the C-packing directory, a new text document, write two lines of code:

RD%TEMP%/s/q

MKDIR%TEMP%

Save as *.bat format (such as Cleantemp.bat).



4, open Group Policy (run Gpedit.msc), turn on "Computer Configuration-windows Settings-script (boot/Shutdown)", and then casually open "start" or "Shut down", the effect is the same, one is to clear the temp when the login is off when empty, here I choose "shutdown." Click "Add" to just do the *.bat file import, click "OK" after the setup is completed, when the shutdown will automatically the user generated temporary files to clean.






This is the Win7 way to clear windows temp files, and to make the Win7 system smoother, you need to periodically clean up these windows temp files.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.