雨林木风系统 > 系统教程 > 其他教程 >

一键清理技术员联盟Win10系统垃圾文件BAT脚本的设置技巧

一键清理技术员联盟Win10系统垃圾文件BAT脚本的设置技巧

作者:佚名 来源:雨林木风系统 2016-10-25 08:04:06

        使用电脑久后,很多用户发现越来越卡了,反应越来越迟钝了,系统垃圾也越来越多了,怎么办呢?其实系统垃圾的拥堵也是造成系统变慢,变迟钝的原因之一,下面小编给大家介绍一键清理技术员联盟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 ”,文件类型选择“所有文件”。
 
4、双击运行刚建立好的清除系统垃圾.bat文件,完成后关闭即可。
 
   为了方便以后随时给电脑系统清理垃圾,随时给电脑“瘦身”,可将它放于桌面上。