開個記事本,把下面的內容複製進去,保存起來。然後給文件起個名,叫什麼無所謂,只要你能記住這個文件是幹嗎用的就可以。但是後綴一定要改成「.bat」。
" S0 o$ A/ _. w) j* P3 g! a8 G以下是需要複製進記事本的內容:
: }9 a- u9 l2 X& \@echo off
1 m1 v# H5 O# j3 x" H+ Mecho 正在清除系統垃圾文件,請稍等......3 s: S& A" {9 E/ L: `3 w
del /f /s /q %systemdrive%\*.tmp
, v, l7 V: g3 T3 V9 Bdel /f /s /q %systemdrive%\*._mp
9 Y4 j9 K7 c& B! Cdel /f /s /q %systemdrive%\*.log4 n. ?. ~" ]/ l2 g
del /f /s /q %systemdrive%\*.gid
0 {4 s) T) }- Z7 h$ G: udel /f /s /q %systemdrive%\*.chk
! O0 n- Y! `9 q% A" f. b) qdel /f /s /q %systemdrive%\*.old: h& E- ^% C" H# `
del /f /s /q %systemdrive%\recycled\*.*
7 d% n, Q8 l# h4 o |del /f /s /q %windir%\*.bak
5 E$ ^3 E0 i1 c f: L+ o y! x8 x* idel /f /s /q %windir%\prefetch\*.*& Q9 k) X* u2 z: B% ~4 F2 ]
rd /s /q %windir%\temp & md %windir%\temp- [8 l f7 K1 {3 Y* v3 E/ \
del /f /q %userprofile%\cookies\*.*
5 h2 J$ s4 Q) d9 gdel /f /q %userprofile%\recent\*.*+ f; `4 @! C; S' Q
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"5 u9 H# ~1 S5 o W+ F( n
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"# j( i6 j s# F2 F
del /f /s /q "%userprofile%\recent\*.*"1 R: ?4 [( o2 P5 c
echo 清除系統LJ完成!: \2 w2 T) { N8 N- _6 I7 S% W
echo. & pause
6 m) V6 l# t9 t" a g- a( \! S
( @" y# y8 F$ Q
$ {7 R b* x L
' h" x. Y! w- U( y+ \3 YPS:雖然沒有什麼副作用,但是我還是習慣於在關機或者重起的時候使用。9 H. V) }# W9 H W
做人要厚道,看書要投票。說話要文明,轉帖就免了。 |
|