Win10系統(tǒng)如何一鍵清除垃圾bat?
電腦使用的時間越長,系統(tǒng)的運行速度也就越慢,甚至慢到無法正常使用。而造成運行速度慢的原因往往都是因為系統(tǒng)垃圾導(dǎo)致的。遇到這個問題的時候,我們最好是使用bat文件來清楚垃圾。那么,Win10系統(tǒng)如何一鍵清除垃圾bat呢?下面,我們一起往下看看。
方法/步驟
1、鼠標右鍵單擊,新建文本文檔;
2、在文件中輸入:
++++++++++++++++++++++++++++++++++++++++++++++
@echo off
color 0a
title windows10系統(tǒng)垃圾清理---
echo 清理垃圾文件,速度由電腦文件大小而定。在沒看到結(jié)尾信息時
echo 請勿關(guān)閉本窗口。
echo 正在清除系統(tǒng)垃圾文件,請稍后。。。。。。
echo 刪除補丁備份目錄
RD %windir%$hf_mig$ /Q /S
echo 把補丁卸載文件夾的名字保存成2950800.txt
dir %windir%$NtUninstall* /a:d /b 》%windir%2950800.txt
echo 從2950800.txt中讀取文件夾列表并且刪除文件夾
for /f %%i in (%windir%2950800.txt) do rd %windir%%%i /s /q
echo 刪除2950800.txt
del %windir%2950800.txt /f /q
echo 刪除補丁安裝記錄內(nèi)容(下面的del /f /s /q %systemdrive%*.log已經(jīng)包含刪除此類文件)
del %windir%KB*.log /f /q
echo 刪除系統(tǒng)盤目錄下臨時文件
del /f /s /q %systemdrive%*.tmp
echo 刪除系統(tǒng)盤目錄下臨時文件
del /f /s /q %systemdrive%*._mp
echo 刪除系統(tǒng)盤目錄下日志文件
del /f /s /q %systemdrive%*.log
echo 刪除系統(tǒng)盤目錄下GID文件(屬于臨時文件,具體作用不詳)
del /f /s /q %systemdrive%*.gid
echo 刪除系統(tǒng)目錄下scandisk(磁盤掃描)留下的無用文件
del /f /s /q %systemdrive%*.chk
echo 刪除系統(tǒng)目錄下old文件
del /f /s /q %systemdrive%*.old
echo 刪除回收站的無用文件
del /f /s /q %systemdrive%recycled*.*
echo 刪除系統(tǒng)目錄下備份文件
del /f /s /q %windir%*.bak
echo 刪除應(yīng)用程序臨時文件
del /f /s /q %windir%prefetch*.*
echo 刪除系統(tǒng)維護等操作產(chǎn)生的臨時文件
rd /s /q %windir%temp & md %windir%temp
echo 刪除當前用戶的COOKIE(IE)
del /f /q %userprofile%cookies*.*
echo 刪除internet臨時文件
del /f /s /q “%userprofile%local settingstemporary internet files*.*”
echo 刪除當前用戶日常操作臨時文件
del /f /s /q “%userprofile%local settingstemp*.*”
echo 刪除訪問記錄(開始菜單中的文檔里面的東西)
del /f /s /q “%userprofile%recent*.*”
echo
3、然后點擊文件,選擇另存為,將文件另存為“ Windows10一鍵垃圾清理.bat”,放置在任意位置;
4、雙擊文件便開始自動垃圾清理大約要幾分鐘時間即可。
以上就是Win10系統(tǒng)一鍵清除垃圾bat的具體方法,按照以上方法進行操作后,相信電腦的運行速度就能馬上恢復(fù)正常了。
相關(guān)文章:
1. Win11/Win10 上提供“試用”按鈕 微軟計劃用“OneOutlook”替代原生“Mail”應(yīng)用2. Debian11中thunar文件管理器在哪? Debian11打開thunar文件管理器的技巧3. 微軟宣布將在1月10日結(jié)束對Win7/8/8.1版Edge瀏覽器的支持4. 通過注冊表刪除多余網(wǎng)卡本地連接5. 麒麟系統(tǒng) KYLIN下掛載軟驅(qū)的方法6. 12個注冊表優(yōu)化方法有助于提高電腦的開關(guān)機速度及上網(wǎng)速度7. windows XP+Fedora 8+solaris 11三系統(tǒng)安裝攻略8. 中興新支點操作系統(tǒng)全面支持龍芯3A3000 附新特性9. 華為筆記本如何重裝系統(tǒng)win10?華為筆記本重裝Win10系統(tǒng)步驟教程10. Win11怎么禁用小組件?Win11禁用小組件操作方法
