最近清出很多垃圾,多達100GB (不是A片拉)
主要都是log檔案,不曉得怎麼會這麽多
主硬碟SSD只有240GB,剩下不到50GB
執行清除程式,空間就騰出150GB拉
下面另存成.bat檔案,可以用Administrative Tools-->task scheduler排程
@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
--
The players change, the games remain.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.176.108.164
※ 文章網址: https://www.ptt.cc/bbs/hardware/M.1544010279.A.6AB.html
→
12/05 22:03, , 1F
12/05 22:03, 1F
→
12/06 00:55, , 2F
12/06 00:55, 2F