今天小編來給大家針對這個教大家一鍵清除系統(tǒng)垃圾文件.bat的方法的問題來進行一個介紹,畢竟當下也是有諸多的小伙伴對于教大家一鍵清除系統(tǒng)垃圾文件.bat的方法這個問題非常的重視的,下面大家可以看下具體的詳情

一鍵清除系統(tǒng)垃圾.bat
復制經(jīng)驗的代碼,放入記事本
源代碼如下
@echo off
echo 正在清除系統(tǒng)垃圾文件,請稍等......
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 SettingsTemporary Internet Files*.*"
del /f /s /q "%userprofile%Local SettingsTemp*.*"
del /f /s /q "%userprofile%recent*.*"
echo 清除系統(tǒng)LJ完成!
echo. pause
記事本重命名:清除系統(tǒng)LJ.bat(復制這個名稱)
保存即可,雙擊運行。
正在清除垃圾
根據(jù)提示,點擊窗口,點擊鍵盤任意鍵結束,完成清理。
經(jīng)過深度清理,恢復電腦的運行速度
輕松方便快捷,做成bat后放置在桌面。
新建記事本-打開放入代碼-保存關閉
重命名記事本
完成-雙擊運行