Win7 How to automatically clean up temporary junk files when shutting down

Source: Internet
Author: User

computer in use will continue to produce a large number of system files and temporary garbage files, these garbage files if not cleaned up in time, not only will occupy a very large system disk space, but also directly affect the speed of the system, but many users before using the computer to ignore the cleaning of the computer, Over time the computer becomes more and more slow.

In fact, we can set up the computer to automatically clean up the temporary files when shutdown, so that the computer will not accumulate a large number of temporary garbage files, the following look at the Win7 shutdown Automatic cleaning of temporary file operation methods.

First step: Create a. bat file that automatically clears temporary files.

1. Start-All Programs-Accessories-Notepad;

2, in the open Notepad input: Del folder path/q, left-click File, in the Drop-down menu left click: Save As;

3, in the open Save as a window, click: Desktop, in the filename (N) column input: Temporary file cleanup. bat, then click: Save.

  Tips for automatically cleaning up temporary junk files when a computer shuts down

Step Two: Add the temporary file to the script shutdown file by cleaning up the. bat file.

1, start-run (input gpedit.msc)-OK or enter, open the Local Group Policy editor;

2, in the Open Local Group Policy Editor window, expand: Computer Configuration-Windows Settings-script (boot/shutdown), left-click the window to the right of the shutdown;

3, in the Open Shutdown Properties window, click: add;

4, in the Add Script window, we click: browse;

5, found in the Open desktop: temporary file cleanup. bat, and left-click: temporary file cleanup. bat;

6, has added temporary file cleanup. bat file, click: OK;

7, back to the Shutdown Properties window, click: Application-OK.

Create a. bat file that automatically clears temporary files, so that the file automatically runs when the computer shuts down, then the temporary garbage file of the computer will be automatically cleaned up, which is also the necessary skills of lazy people oh.

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.