Create an automatic cleanup tool for Windows junk files

Source: Internet
Author: User

Source: xiaoxin Technology Network

Do you feel that your computer is getting slower and slower! Most of these are spam files. Is there a way for the computer itself to automatically clean up the garbage generated during the running process? The answer is yes. You can manually create an automatic cleanup tool for Windows spam files as follows:

Open notepad and enter the following content:
@ Echo off
Rmdir/s/q % temp %
DEL/F/Q/s c: *. tmp
DEL/F/Q/s c: *. gid
DEL/F/Q/s c: *. old
DEL/F/Q/s c: *. bak

Save it as "C: cleanpc. bat, press Win + R to open the "run" window, and enter "gpedit. msc open the Group Policy, go to computer configuration-Windows Settings-script (start/Close), double-click shutdown in the right pane, and then click Add, enter "C: cleanpc" in "Script Name. bat ". In this way, every time the computer is shut down, the system will automatically clean up junk files, so that your Windows will always be clean and good performance. Of course, some people may say that third-party software can do the same thing, but I feel that it is more fun to do it myself than to use other people's things. Last, I would like to remind you that the shutdown time may be slightly longer after this setting, but it is worthwhile to sacrifice this time for your computer to have a clean and good performance.

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.