清理系统垃圾代码是什么(教你有效清理系统垃圾的实用技巧)

米狐狸 by:米狐狸 分类:教程 时间:2024/05/17 阅读:78 评论:0
清理系统垃圾代码是什么(教你有效清理系统垃圾的实用技巧)

今天小编教大家清理系统垃圾的代码,让你的系统运行如飞。

代码是这样:

@echo off

echo 正在清除系统垃圾文件,请稍等……

del /f /s /q %systemdrive%\*.tmp

del /f /s /q %systemdrive%\*._mp

del /f /s /q %systemdrive%\*.gid

del /f /s /q %systemdrive%\*.chk

del /f /s /q %systemdrive%\*.old

del /f /s /q %windir%\*.bak

del /f /s /q %windir%\temp\*.*

del /f /a /q %systemdrive%\*.sqm

del /f /s /q %windir%\SoftwareDistribution\Download\*.*

del /f /s /q “%userprofile%\cookies\*.*”

del /f /s /q “%userprofile%\recent\*.*”

del /f /s /q “%userprofile%\local settings\temporary internet files\*.*”

del /f /s /q “%userprofile%\local settings\temp\*.*”

echo 清除系统垃圾文件完成!

echo. & pause

大家首先创建一个文本文档,把这段代码复制在里面:

复制代码后保存

再将我们文档后缀名txt改为bat:

最后我们”以管理员身份运行”运行就好:

打开后:

垃圾就清理完了,是不是很简单!

赶快给电脑瘦个身吧!

非特殊说明,本文版权归原作者所有,转载请注明出处

本文地址:http://www.mihuli.com/post/12149.html


TOP