win7系统下载win7系统下载

当前位置:主页 > Windows7系统教程 >

Win10系统中打造一键清理系统垃圾文件BAT脚本

更新时间:2016-06-01 作者:win7系统下载 来源:www.win71234.com

最新Win10系统中打造一键清理系统垃圾文件BAT脚本,由系统下载吧率先分享:        很多用户当电脑使用久后,都会发现变得越来越卡了,反应越来越迟钝了,系统垃圾也越来越多了的问题。其实系统垃圾的拥堵对于系统运行速度有着直接的关系,为了帮助用户摆脱系统垃圾难题,现小编给以Win10 32位专业版为例,给大家分享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文件,完成后关闭即可。

 

   为了方便以后随时给电脑系统清理垃圾,随时给电脑“瘦身”,可将它放于桌面上。
 
 

友情链接