Clean the C-drive system Junk file-batch mode

Source: Internet
Author: User

Many times the installation of software more and more, some of the software generated temporary files, garbage files often exist in the C-Disk system disk, the day of the night tired directly resulting in the availability of the system disk space is getting smaller, until there is no extra space,

The last possible result is a system exception, the software does not work properly, at this time can be through other third-party software tools or anti-virus, security guard, such as clean up more comprehensive or reinstall the operating system, but this will be very troublesome,

After that, we need to install all kinds of necessary software, configuration and so on, sometimes to clean up without installing other software, it is easy to clean up most of the garbage or temporary cache files through the following batch processing Clear.bat.

The batch content is as follows:

echo "is cleaning up the system garbage and temporary files, please wait ..."

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 settings\temporary Internet files\*.*"

del/f/s/q "%USERPROFILE%\Local settings\temp\*.*"

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

The above save as Clear.bat, placed in any convenient location can (in addition to the above listed path O (∩_∩) o~), need to clean up, double-click to execute the batch file, wait a little.

Clean the C-drive system Junk file-batch mode

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.