zoukankan      html  css  js  c++  java
  • 清理C盘系统垃圾文件-批处理方式

      很多时候安装软件越来越多,部分软件产生的临时文件、垃圾文件常常存在于C盘系统盘中;日积夜累直接导致可用的系统盘空间越来越小,直到没有多余的空间为止,

    最后可能的结果是系统异常、软件无法正常运行;此时可以通过其他第三方软件工具或杀毒、安全卫士之类的清理比较全面或者重新安装操作系统,不过这样也会非常麻烦,

    此后还需要安装各种必要的软件、配置之类的;有时候为了方便不用安装其他软件即可清理,通过以下批处理clear.bat,可以较为方便的清理大部分垃圾或临时缓存文件,

    批处理内容如下:

      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% ecycled*.*

      del /f /s /q %windir%*.bak

      del /f /s /q %windir%prefetch*.*

      rd /s /q %windir% emp & md %windir% emp

      del /f /q %userprofile%cookies*.*

      del /f /q %userprofile% ecent*.*

      del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"

      del /f /s /q "%userprofile%Local SettingsTemp*.*"

      del /f /s /q "%userprofile% ecent*.*

    以上保存为clear.bat,放置在任何方便的位置皆可(除了以上罗列的路径下O(∩_∩)O~),需要清理的时候,双击执行该批处理文件,等候稍许即可。

  • 相关阅读:
    【转载】uboot的工具mkimage使用方法
    u-boot-2010.3移植到Tiny6410问题总结
    【转载】 GNU GCC 选项说明
    【转载】GCC 预处理器选项
    用kermit通过串口往nandflash任意地址里烧写任何文件!
    自己写Tiny6410的Bootloader总结!
    ARM常用汇编指令介绍
    Ubuntu14.04和Tiny6410挂载NFS服务!
    Tiny 6410的Linux学习总结!
    Tiny6410下的第一个Linux驱动程序
  • 原文地址:https://www.cnblogs.com/haomiao/p/4950729.html
Copyright © 2011-2022 走看看