起首在我們的電腦桌面上新建一個TXT格局的文件,如下圖所示。
然后在記事本中輸入@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 斷根系統LJ完當作!
echo. & pause
接著點擊保留,如下圖所示。
然后右擊這個記事本并點擊屬性,如下圖所示。
然后把這個文件的后綴名改為bat,如圖所示。
接著雙擊這個文件,如下圖所示。
如許操作完當作,我們就會刪除一些垃圾文件了。
0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!