[請問] 這串CMD程式碼的功能和作用是什麼?
如題
想請問這串編碼的用途是什麼
我本來正在找免開機清空暫存記憶體的方法
GOOGLE到一篇教學說可以利用CMD程式代碼清除垃圾資料
但不知道照著做會怎樣
教學內容只說這個代碼可以刪除垃圾文件釋放記憶體,但沒說會刪到什麼程度的範圍
瀏覽器的紀錄或未存檔資料會被刪除嗎?
求檢視:
@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 清除系統垃圾完成!
echo. & pause
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.136.175.13 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/ask/M.1660584112.A.58D.html
推
08/16 01:26,
3年前
, 1F
08/16 01:26, 1F
→
08/16 01:27,
3年前
, 2F
08/16 01:27, 2F
推
08/16 08:07,
3年前
, 3F
08/16 08:07, 3F
→
08/16 08:07,
3年前
, 4F
08/16 08:07, 4F
推
08/16 09:04,
3年前
, 5F
08/16 09:04, 5F
→
08/16 09:04,
3年前
, 6F
08/16 09:04, 6F
→
08/16 09:04,
3年前
, 7F
08/16 09:04, 7F
→
08/16 09:04,
3年前
, 8F
08/16 09:04, 8F
→
08/16 09:13,
3年前
, 9F
08/16 09:13, 9F
推
08/16 10:51,
3年前
, 10F
08/16 10:51, 10F
推
08/16 10:53,
3年前
, 11F
08/16 10:53, 11F
→
08/16 10:53,
3年前
, 12F
08/16 10:53, 12F