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