码迷,mamicode.com
首页 > 其他好文 > 详细

一键清除系统垃圾

时间:2016-04-24 14:10:49      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:

1、桌面新建一个记事本(命名为清理系统垃圾,方便阅读)

2、复制下面这些命令到改记事本:

  @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

 

3、修改该记事本后缀名为.bat

4、双击修改后的文件即可清理系统垃圾

一键清除系统垃圾

标签:

原文地址:http://www.cnblogs.com/wenxiangxu/p/5426818.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!