XP system how to set up automatic Cleanup Temp folder

Source: Internet
Author: User

XP system how to set up automatic Cleanup Temp folder

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.

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.