本文为大家介绍一键清理系统垃圾命令(win10一键清理垃圾程序代码),下面和小编一起看看详细内容吧。
新买的电脑,一开始用起来很舒服,软件嗖的一声打开,很爽。但是随着使用时间和频率的增加,windows电脑的运行速度会明显下降,开关机速度慢,打开软件要等一两秒。那么如何一键清理系统垃圾文件呢?下面,小编就为大家介绍一下如何使用win10一键清理系统垃圾文件。
电脑升级到windows 10后,电脑c盘的可用空间会变得比较小。这是因为windows 10的安装占用了大量的系统盘空间。这时候如何清理系统文件呢? win10电脑清理bat文件是针对win10系统优化的一款bat小程序专用工具。下面来看看win10电脑清理bat文件的使用方法。
win10一键清理系统垃圾文件
在电脑桌面空白处新建一个文本文档
一键清理电脑图解-1
创建完成后,将以下文字复制粘贴到文本文档中。
@回声关闭
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 清除系统垃圾完成!
回声。暂停
系统文件计算机图-2
复制完成后,点击文件,另存为,弹出另存为窗口后,
系统文件电脑图-3
将保存类型改为所有文件,自定义保存路径,自定义文件名(注意:文件名末尾需加“.bat”)
一键清理电脑图解-4
最后生成一个bat批处理文件,我们双击打开,系统会自动清理垃圾文件。
系统档案电脑图-5
以上就是win10一键清理系统garbage.bat的运行。
好了,一键清理系统垃圾命令(win10一键清理垃圾程序代码)的介绍到这里就结束了,想知道更多相关资料可以收藏我们的网站。