Windows Server cleanup System garbage log file

Source: Internet
Author: User

Windows Server system disk if it is a 2003 system, then we default to 10G of space is enough, but sometimes we inadvertently to check the system disk when found to have used 9.9G, in fact, most of the garbage log files occupy the system disk space, using the following batch processing to delete these files.


Create a new text document on the desktop and copy the following code:


@echo Offecho is cleaning up the system junk file, please wait a moment ... del/f/s/q%systemdrive%\\*.tmpdel/f/s/q%systemdrive%\\*._mpdel/f/s/q%SYSTEMDR  ive%\\*.logdel/f/s/q%systemdrive%\\*.giddel/f/s/q%systemdrive%\\*.chkdel/f/s/q%systemdrive%\\*.olddel/f/s/q  %systemdrive%\\recycled\\*.*del/f/s/q%windir%\\*.bakdel/f/s/q%windir%\\prefetch\\*.*rd/s/q%windir%\\temp & MD%windir%\\tempdel/f/q%userprofile%\\cookies\\*.*del/f/q%userprofile%\\recent\\*.*del/f/s/q \ "%userprofile%\\L ocal settings\\temporary Internet files\\*.*\ "del/f/s/q \"%userprofile%\\local settings\\temp\\*.*\ "del/f/s/q \"%use Rprofile%\\recent\\*.*\ "echo Clear system garbage complete! Echo. & Pause

After the code has been copied, the suffix of the file is changed to bat or cmd format, and the system garbage is erased by double-clicking to execute the following.



This article is from the "Light Blue Wind" blog, be sure to keep this source http://1051236524.blog.51cto.com/5661514/1409356

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.