Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

เพิ่ม Disk Cleanup ใน Right-click Context Menu ของ Hard Drives ใน Windows 10

บทความนี้แนะนำวิธี เพิ่ม Disk Cleanup ใน Right-click Menu ของ Hard Drives ใน Windows 10 เพื่อเปิด Disk Cleanup สำหรับ Drive ใดๆ ด้วย 2 คลิก แล้วลบ Temporary Files เปลืองพื้นที่ได้ ทั่วไปต้องเปิด Disk Cleanup ก่อนแล้วเลือก Drive แต่ด้วยวิธีนี้ เข้า Disk Cleanup ของ Drive นั้นๆ ได้ทันที

เพิ่ม Disk Cleanup ใน Context Menu ของ Hard Drives

Registry Trick เพิ่ม Disk Cleanup ใน Right-click Context Menu ของ Hard Drives ทั้งหมด ขั้นตอน:

  1. เปิด Registry Editor
  2. เข้า shell Registry Key
  3. สร้าง Windows.CleanUp Registry Key
  4. สร้าง CommandStateSync String Value
  5. สร้าง ExplorerCommandHandler String Value
  6. ใส่ {9cca66bb-9c78-4e59-a76f-a5e9990b8aa0} ใน Value Data
  7. OK
  8. สร้าง Icon String Value
  9. ใส่ %SystemRoot%\System32\cleanmgr.exe,-104 ใน Value Data
  10. OK
  11. สร้าง ImpliedSelectionModel DWORD Value
  12. เลือก Hexadecimal ใน Base
  13. ใส่ 1 ใน Value Data
  14. OK
  15. ปิด Registry Editor

เปิด Registry Editor (regedit ใน Search Enter) เข้า Key:

HKEY_CLASSES_ROOT\Drive\shell

คลิกขวา shell > New > Key ชื่อ Windows.CleanUp ด้านขวา New > String Value ชื่อ CommandStateSync New > String Value ชื่อ ExplorerCommandHandler ดับเบิลคลิก ใส่ {9cca66bb-9c78-4e59-a76f-a5e9990b8aa0} OK

New > String Value ชื่อ Icon ใส่ %SystemRoot%\System32\cleanmgr.exe,-104 OK (จะแสดง Icon Disk Cleanup)

New > DWORD Value ชื่อ ImpliedSelectionModel ดับเบิลคลิก เลือก Hexadecimal ใส่ 1 OK

เสร็จ! เปิด File Explorer คลิกขวา Hard Drive จะเห็น Cleanup Option คลิกจะเปิด Disk Cleanup สำหรับ Drive นั้น

ลบ Option นี้: ทำขั้นตอนเดิม ลบ Windows.CleanUp Registry Key ที่สร้าง

TIP: Command-line version ของ Disk Cleanup มี Cleanup Options มากกว่า