当前位置首页 > 百科资料> 正文

磁盘清理程序

2022-06-26 15:40:19 百科资料

磁盘清理程序是常用电脑程序的一种,能帮助释放硬盘驱动器空间。磁盘清理程序搜索您的驱动器,然后列出临时文件、Internet 缓存文件和可以安全删除的不需要的程序文件。可以使用磁盘清理程序删除部分或全部这些文件。

  • 中文名称 磁盘清理程序
  • 外文名称 Disk Cleaning Program
  • 目的 释放硬盘驱动器空间
  • 方法 使用磁盘清理程序
  • 性质 电脑程序

  应用

  磁盘清理程序有很多,以下是一种最简便的。 在桌面上空白处点鼠标右键,选择新建一个"写字板"或者是"文本文档",把下面的字复制进去,点"另存为",把文件名定为"磁盘清理.bat"就完成,记住后缀名一定要是.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 清除系统垃圾完成!

声明:此文信息来源于网络,登载此文只为提供信息参考,并不用于任何商业目的。如有侵权,请及时联系我们:baisebaisebaise@yeah.net