清除系统垃圾文件

系统运行一段时间就会产生很多无用的临时文件.

一个批处理.快速清除系统垃圾文件


@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 清除系统垃圾完毕!按任意键退出!
echo. & pause

复制上面代码.保存在文本文档中.改扩展名为.bat  双击运行.
或是在命令行里直接运行

3 条评论

  1. 银子

    @maudo 已修改

  2. maudo

    银子,麻烦把我的博客地址换一下!!
    把原来的maudo.net换成http://iw3c.com

  3. WEBLOG

    大哥,你不会现在才发现这个“稀奇”的BAT吧?

发表评论

浏览最多的10篇日志

评论最多的10篇日志

随机显示的10篇日志