清理垃圾bat(清理垃圾bat代码)

@echo

清理垃圾bat(清理垃圾bat代码)

off

echo

正在清理系统垃圾文件清理垃圾bat,请稍等......

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\\\\*.*\"

echo

清理系统垃圾完成!

echo

文件清理完毕!本程序将在3秒后退出!现在进入倒计时.........

@echo

off

echo

wscript.sleep

300

>

%temp%.\\\\tmp$$$.vbs

set

/a

i

=3

:timeout

if

%i%

==

0

goto

next

setlocal

set

/a

i

=

%i%

-

1

echo

倒计时……%i%

cscript

//nologo

%temp%.\\\\tmp$$$.vbs

goto

timeout

goto

end

:next

cls

&

echo.

for

%%f

in

(%temp%.\\\\tmp$$$.vbs*)

do

del

%%f

echo.