Win7 system how to clean up windows temp files ease C disk space pressure

Source: Internet
Author: User
Tags windows temp files

Method steps:

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

2, right click "My Computer" "Properties" "Advanced system Settings" "Advanced" Open the Environment Variables dialog box, the user variables and system variables are changed 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 (e.g. Cleantemp.bat);

4, open Group Policy (run Gpedit.msc), turn on "Computer Configuration-windows Settings-script (Start/shutdown)";

5, and then casually open "start" or "shutdown", 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.

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.