How to automatically clear temporary junk files when the computer is shut down

Source: Internet
Author: User

Step 1: Create a. bat file that automatically clears temporary files.

1. Start-all programs-accessories-notepad;

2. In the opened notepad, enter del folder path/q, left-click the File, and click save in the drop-down menu;

3. In the open save as window, click: Desktop, enter: temporary File cleanup. bat in the file name (N) column, and then click: save.

Step 2: Add the temporary file cleanup. bat file to the script shutdown file.

1. Start-run (enter gpedit. msc)-OK or press enter to open the local group policy editor;

2. In the open local group policy editor window, expand: computer configuration-Windows settings-script (start/stop), and left-click the shutdown button on the right of the window;

3. In the open shutdown properties window, click Add;

4. In the add Script window, click browse;

5. Find "temporary File cleanup. bat" on the opened desktop, and double-click the "temporary File cleanup. bat" button;

6. You have added a temporary file to clear the. bat file. Click "OK;

7. Return to the shutdown properties window and click: application-OK.

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.