一鍵清理電腦垃圾小程序

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 終止程序.

在這裏插入圖片描述

清理完後電腦明顯流暢多了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章