Use batch processing to quickly clean up junk files in your system

Source: Internet
Author: User

System spam Cleanup can also be automated by simply creating a new batch and then adding it to the system startup to automate the boot, so that the system automatically runs the batch file every time it starts, cleaning up the system garbage.

Open Notepad, and then enter the following:

@echo off

Echo is cleaning up the system garbage file, please wait a moment ...

Del/f/s/q%systemdrive%*.tmp

Del/f/s/q%systemdrive%*._mp

Del/f/s/q%systemdrive%*.log

Del/f/s/q%systemdrive%*.gid

Del/f/s/q%systemdrive%*.chk

Del/f/s/q%systemdrive%*.old

Del/f/s/q%systemdrive%recycled*.*

Del/f/s/q%windir%*.bak

Del/f/s/q%windir%prefetch*.*

Rd/s/q%windir%temp &md%windir%temp

Del/f/q%userprofile%cookies*.*

Del/f/q%userprofile%recent*.*

del/f/s/q "%userprofile%local seteingstemporary Internet files*.*"

del/f/s/q "%userprofile%local seteingstemp*.*"

del/f/s/q "%userprofile%recent*.*"

echo Clears system garbage complete!

echo.& Pause

Select "File" → "Save As" when you are finished, and then enter "purge system garbage. bat" in "file name", but the filename does not matter, but the extension must be. bat. Click Save to make the batch file work.

Double-click on the batch file, you can quickly clean up the garbage file, about a minute or so. When the cleanup is complete, press any key to exit.

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.