WinXP how to automatically clean up the Temp folder to improve system running speed

Source: Internet
Author: User

winxp in the Temp folder is the system's temporary folder, the main is to store some of the temporary files generated, these temporary files if you do not clean up in time, you will accumulate more and more, wasting space on the disk, but also to the system will cause disk fragmentation, affecting the system's read and write running speed. How do I clean up these temp folders? Perhaps you will use software to clean up, but the software itself will cause the Temp folder backlog, so we should also learn to clean manually.

  Automatic Cleanup method:

1. Establishment of D:USERDATATEMP catalogue in D-disk

02. Right-click My Computer, properties, advanced, open the Environment Variables dialog box, change both the user variable and the system variable to d:userdatatemp.

03. Create a new text document and write two lines of code inside it:

RD%TEMP%/s/q

MKDIR%TEMP%

Then save it as a *.bat format (for example, cleantemp.bat) so that you can automatically empty the files under the Temp folder just by opening the Cleantemp.bat file.

04. After three steps, we can actually clean up the temporary files, but we can't meet them, our goal is to let Windows automatically empty and liberate our hands:

Open Group Policy (run Gpedit.msc), turn on "Computer Configuration-windows Settings-script (boot/Shutdown)", and then open "start" or "Shut down", the effect is the same, one is to empty the temp at login is off when empty, here I choose "Shutdown". Click "Add" to just do the *.bat file import, point "OK" after everything is done.

Through the above operation, in the future you just double click to create a good. bat format file, the WinXP system will automatically clean the Temp folder under the garbage, compared to the use of Third-party software is also more convenient.

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.