雨林木风下载站 加入收藏
当前位置:主页 > 雨林木风系统教程 >

创建win10系统盘清理bat实现一键清理垃圾的技巧

  • 发布日期:2016-08-08
  • |
  • 作者:雨林木风下载站
  • |
  • 来源:http://www.90800.com.cn
         电脑使用过程中,就会产生垃圾,当使用电脑时间久后,安装的软件越来越丰富时,系统垃圾也随着软件的增多而增多,让系统反应变迟钝的问题。针对此问题,现笔者给大家分享创建win10系统盘清理bat实现一键清理垃圾的技巧,让大家实现一键快速清理垃圾。

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”,保存类型选择“所有文件”。
 
通过以上操作后,当想对系统垃圾文件进行清除的时候,只需点击打开这个创建好的清除系统垃圾文件,等待系统垃圾清理完成按任意键完成操作。