Cleanup of temporary computer files

Source: Internet
Author: User

Temp is a Temporary Folder

C: \ Documents ents and Settings \ Administrator \ Local Settings \

This includes storing many temporary files here, favorites, temporary files for Browsing webpages, and editing files. This is saved on a temporary basis based on your operation process.

Administrator is the super user of the Administrator. Now you can see the desktop layout and previous usage records on the Internet. If you have never cleared the image, it is still here.

For example, if your user name is RCW, your current file is c: \ Documents ents and Settings \ RCW \ Local Settings \

It records the usage of the RCW user name, and you may not see c: \ Documents ents and Settings \ Administrator \ Local Settings \ according to the user name permissions \.

 

How to clear windows temporary folders?

Windows temporary folders are distributed in three places: 1: C: \ WINDOWS \ Temp, which is common to the system.

2: there is also a configuration folder under the current login account, usually c: \ Documents and Settings \ login account \ Local Settings \ temp.

3. IE Temporary Folder: C: \ Documents ents and Settings \ User Name \ Local Settings \ Temporary Internet Files (Hidden directory by default) You can also view through this operation: open ie --- tool --- Internet Options --- General --- settings.

At a glance, we can see that they are all in disk C, which is very unfavorable for controlling disk fragments. So the first thing we need to do is to move temp to a partition other than disk C. Here we take disk D as an example.

1. Create the D: \ userdata \ Temp directory on drive D.

2. Right-click "my computer", "properties", and "advanced". In the "environment variables" dialog box, Change User variables and system variables to D: \ userdata \ temp.

3. Create a text document and write two lines of commands in it:

Rd % Temp %/S/Q

Mkdir % Temp %

Then save it as *. Bat format (for example, cleantemp. BAT), so that as long as the cleantemp. BAT file is opened, the files in the temp folder will be automatically cleared.

4. After the above three steps, we can actually clear the temporary files, but we cannot meet this requirement. Our goal is to automatically clear windows and free our hands.

Open the Group Policy (run gpedit. MSC), enable "Computer Configuration-Windows Settings-script (start/shut down)", and enable "start" or "Shut Down" at will. The effect is the same, one is to clear temp at login, and the other is to clear it at shutdown. Here I select "shutdown ". Click "add" to import the *. BAT file. Click "OK" and everything will be done.

How can I change the location of a temporary folder?

Create a folder temp on a non-system disk, such as drive D, right-click my computer, and select "Properties> advanced> environment variable ", in the pop-up "environment variables" window, double-click the temp and TMP variables under "User variables" and change the original "% USERPROFILE % \ Local Settings \ Temp" to "D: \ Temp "is OK.

Go to the registry editing page and change "% USERPROFILE % \ Local Settings \ Temp" in the Registry to "D: \ Temp" to change the location of the temp folder.

Start → run → enter Regedit to open the Registry

 

When should I delete a temp file?

That is, when there is no program running in the background, and the same fault occurs repeatedly, and it is confirmed that it is not caused by system hardware, such as printing problems, the printer always does not recognize your paper, if you are notified that you have not put any paper, you should delete the files in temp in the Windows directory. In addition, the disk scan has a cross-link error and cannot be automatically corrected, you should try to delete the temporary file and scan it again. Note: Some temporary files in the word installation directory are hidden. You may need to use a dedicated tool to clear the temporary files to delete them. Otherwise, all files are displayed in the directory, and then manually delete it.

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.