计算机在长期使用之后必然会有性能下降,这是因为应用程序的使用会产生很多磁盘碎片文件和一些临时文件或缓存文件,这必然导致磁盘的利用率下降。为了保持计算机更为流畅的运行我们需定期对磁盘碎片进行整理并对垃圾文件进行清理,今天我们的话题就是让垃圾文件的清理和磁盘碎片整理自动化。' S4 g: x2 L6 q Y K
) R4 I1 W p# p- K! J G 以下批处理可以帮助我们对系统上的临时文件和无用的日志或备份文件进行一个清理。 * i! x* f& C- q% z! y u; E- X6 o2 a: y/ \; D
del /f /s /q %systemdrive%*.tmp7 e5 F1 g9 C$ i) |* u0 _
del /f /s /q %systemdrive%*._mp 4 s+ v" l8 H6 k c& s* Sdel /f /s /q %systemdrive%*.log3 }# z" ?' `. f7 j' N* d
del /f /s /q %systemdrive%*.gid % [: z& [' k6 Kdel /f /s /q %systemdrive%*.chk& B1 x" N8 @+ H7 J5 v* l; w( }
del /f /s /q %systemdrive%*.old5 M* b* i6 `; J: G
del /f /s /q %systemdrive%recycled*.*! B/ r8 C( x) r p) y8 [
del /f /s /q %windir%prefetch*.* ) t$ c' x. W. d }/ ird /s /q %windir%temp & md %windir%temp/ _4 ~ i1 C" [0 E, e5 N2 a
del /f /q %userprofile%cookies*.* + c$ R+ M; t2 n4 O- G7 bdel /f /q %userprofile%recent*.*' {! _+ C# ~0 W6 Y; W/ P
del /f /s /q %userprofile%Local SettingsTemporary Internet Files*.*/ q. M4 m) A2 E5 Y& I
del /f /s /q %userprofile%Local SettingsTemp*.* + R; M9 `$ t* l% U# o+ E* ldel /f /s /q %userprofile%recent*.* B% B" P+ ]. l/ ?" ]' E