首页 > 电脑知识 / 一键清除系统垃圾文件

一键清除系统垃圾文件

文章整理:陈阳 分类:电脑知识来源: 1
电脑使用中会产生很多缓存文件,时间久就会占用太多硬盘空间,又不知道如何清理,这里可以使用下面批处理文件进行一键清除系统垃圾文件。  @echo off  echo 正在清除系统垃圾文件,请稍等。。。。。。  del /f /s /q %systemdrive%\*.tmp  del /f /s /q %systemdrive%\*._mp  del /f /s /q %systemdr
电脑使用中会产生很多缓存文件,时间久就会占用太多硬盘空间,又不知道如何清理,这里可以使用下面批处理文件进行一键清除系统垃圾文件。
  @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 清除系统LJ完成!
  echo. & pause
把上面文件复制出来保存到文本文件中,然后另存名称为“一键清除系统垃圾文件.bat“,文件类型选择"所有文件"


 

猜你喜欢

更多

热门标签