如果你系统使用了一段时间,安装了许多的软件,或者升级过,或者长期浏览网页,一定时间后累积的垃圾达到你不可想象的程度,这里教大家写一个程序,这个程序是自动清除电脑里的垃圾而不破坏系统,比很多垃圾清理软件还好,使用它,经常在一些系统中清理出一个G以上的垃圾.将下面的程序文字复制到记事本中,然后另存为Clean.txt,然后将.TXT的文件属性改成.BAT.然后执行,一会功夫,即可清理完成. @echo off Echo 正在清除系统垃圾文件,请稍等…… 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 清除系统垃圾文件完成!
|
|
|
|
|