Thursday, 7 February 2019

清除系統不必要且可刪除的檔案

清除系統不必要且可刪除的檔案



@echo off
echo Clear The System Garbage Data
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 Clear End Up
echo. & pause

Copy the above description to note, and save the file as .bat

No comments:

Post a Comment

聯邦數位帳戶NewNewBank推薦碼,15%高利息優惠

 好推分享!New New Bank數位帳戶【推薦開戶】台幣高利活儲、投資下單手續費優惠等超多好康,立即開戶: https://newnewbank.ubot.com.tw/web/#/S0101001?pm=3&ID=ZZIDIHI 透過上面連結開戶,你會享有一個月15...