很多朋友不懂得如何清理自己電腦上產生的各種垃圾檔案,導致電腦越來越卡,那麼接下來我就教給大家一個簡單的清理電腦垃圾檔案的方法,那就是自制清理電腦系統垃圾的指令碼檔案。
在桌面上右鍵然後選擇新建一個文字文件。
02開啟記事本,在文字文件中輸入以下程式碼
@echo off
echo 正在清除系統垃圾檔案,請稍等......
del /f /s /q %systemdrive%*
del /f /s /q %systemdrive%*._mp
del /f /s /q %systemdrive%*
del /f /s /q %systemdrive%*
del /f /s /q %systemdrive%*
del /f /s /q %systemdrive%*
del /f /s /q %systemdrive%recycled*.*
del /f /s /q %windir%*
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 清除系統垃圾完成!
echo. & pause
在記事本左上角的檔案裡選擇另存為。
04將文字文件的字尾改為,把儲存型別改為所有檔案。
05儲存完畢後直接點選它就可以開始清理電腦垃圾了。
06清理完畢後,在鍵盤上任意按一個鍵,就退出清理介面了。