Windows System Cleanup

@echo off

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 %windir%\*.bak

del/f/q %systemdrive%\recycled\*.*

del/f/q %windir%\prefetch\*.*

rd/s/q %windir%\temp & md %windir%\tempemp% &md %temp%

del/f/q %userprofile%\cookies\*.*

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

rd/s/q \“%userprofile%\Local Settings\Temporary Internet Files\”

cls & echo 系统垃圾清除完成:)

echo. & pause

  The above code, paste it into the new text document, change the .dat suffix windows batch file, double-click execution.

 

Parameters meaning:

del/f/s/q

del meaning of the parameters:

It prompts for confirmation before deleting each file: / p. / f: Force delete read-only files . / s: delete the specified files in all subdirectories. / q: Quiet mode, delete on global wildcard, does not require confirmation.

cmd window, type del / can view the parameters mean?:

systemdrive is representative of the system disk. If the system in the C drive, then  % systemdrive% = c:

 

Guess you like

Origin www.cnblogs.com/132818Creator/p/11260272.html