如何不借助清理工具清理电脑里的“系统灰尘”

编程入门 行业动态 更新时间:2024-10-10 08:22:55

如何不借助清理工具清理电脑里的“系统<a href=https://www.elefans.com/category/jswz/34/1702085.html style=灰尘”"/>

如何不借助清理工具清理电脑里的“系统灰尘”

第一步桌面创建一个txt文档,然后把下面的代码复制粘贴到文档里,文件名随意

@echo off 
echo waiting...... 
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 success! 
echo. & pause

形如下图

然后保存,把文件后缀.txt改成.bat 如果电脑没有显示后缀如何设置的下面简单提下

拿win11举个例子(win10同理 进去找查看)

点开我的电脑(也可能叫 此电脑)



勾选即可


改完以后是这样的
然后双击


出现请按任意键继续 就可以关闭窗口了
(执行过程中出现乱码可以不用理会)

更多推荐

如何不借助清理工具清理电脑里的“系统灰尘”

本文发布于:2024-02-07 11:38:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1756923.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:灰尘   工具   系统   电脑

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!