您的位置首页生活百科

手动清理系统垃圾

手动清理系统垃圾

的有关信息介绍如下:

手动清理系统垃圾

电脑用的时间久了,就会产生各种各样的垃圾,我们可以用一些垃圾清理软件来清理,但是有些时候效果却不一定很理想,如果你喜欢自己动手的话不妨试试下面这个小方法。

点击“开始-附件-记事本”

将引号中的代码复制进去“

  @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”如我的“clean.bat”

接下来双击直接运行就可以啦

一定要记得改扩展名,不然没有反应的。