一键清理电脑垃圾小程序

版权声明:author:Old Monster ,qq:767267711 ,email:[email protected] https://blog.csdn.net/qq_42259469/article/details/85162773

step 1: 桌面右键新建个文本后缀.bat格式

在这里插入图片描述

step 2: 右键文件----编辑

在这里插入图片描述

step 3: 复制下面代码粘贴进去.

@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

step 4: 保存,双击运行就可以了,CTRL+C 终止程序.

在这里插入图片描述

清理完后电脑明显流畅多了

猜你喜欢

转载自blog.csdn.net/qq_42259469/article/details/85162773