小伙伴们,你还在使用杀毒软件清理你的电脑垃圾吗?小鬼只能说实在是太low了,今天小鬼教你一招,用代码一键清理系统垃圾,方便又快捷,做极客拒绝lowsir!

首先,新建一个文本,把代码复制进去

@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 清除系统LJ完成!

echo. & pause

清理垃圾的杀毒软件(杀毒软件清理垃圾)(1)

如图所示

然后另存在,保存类型选择所有文件,文件名可以叫清理电脑垃圾.bat。(后缀记得修改为.bat)

清理垃圾的杀毒软件(杀毒软件清理垃圾)(2)

如图所示

需要清理垃圾时,双击图标运行就可以了。

清理垃圾的杀毒软件(杀毒软件清理垃圾)(3)

如图所示

清理垃圾的杀毒软件(杀毒软件清理垃圾)(4)

如图所示

清理完垃圾,关闭窗口即可。

清理垃圾的杀毒软件(杀毒软件清理垃圾)(5)

如图所示

你学会了吗,小伙伴?有好玩的,想学什么都可以评论告诉小鬼,小鬼和你一起学习。

,