สำห End-user การ Format USB Drive ง่ายมาก แค่คลิกขวาที่ Drive เลือก Format แต่หากคุณอยาก Format USB Pen Drive ด้วย Command Prompt นี่คือวิธีทำใน Windows 11/10/8/7
Format USB Pen Drive ด้วย CMD
ตอนใช้ Command Prompt มี 2 วิธี หนึ่งใช้ Format Command ธรรมดา อีกอย่างใช้ Diskpart เราจะแสดงทั้ง 2 วิธี
- ใช้ Format Command
- ใช้ Diskpart Tool
ตอนใช้ Diskpart Tool ต้องมี Admin Privileges คุณยังใช้ PowerShell แทน CMD ได้
1. ใช้ Format Command

เสียบ USB Drive ที่ต้องการ Format เปิด File Explorer ระบุ Drive Letter ของ USB Drive ให้ถูกต้อง อย่าปล่อยให้ผิดพลาด หากใช้ Drive Letter ผิด คุณจะ Format Partition อื่นและสูญเสียข้อมูลทั้งหมด
- ตรวจสอบว่าไม่มีการ Copy อยู่ และ Drive ไม่ได้เปิดใน Explorer
- พิมพ์ CMD ใน Run Prompt กด Enter เปิด Command Prompt
- พิมพ์ FORMAT <Driveletter>: กด Enter
- จะพรอมท์ให้ใส่ Disk ใหม่สำห Drive I กด Enter อีกครั้ง
- หากได้ Prompt ว่า:
Format cannot run because the volume is in use by another process. Format may run if this volume is dismounted first.
ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID.
Would you like to force a dismount on this volume? (Y/N)
- พิมพ์ Y จะ Dismount Volume เพื่อ Format เพราะมี Process อื่นเข้าถึงอยู่ Unmounting จะทำให้ Process ทั้งหมดที่เข้าถึง Drive หยุด
หากต้องการ Format ด้วย Options ที่คุณต้องการ แนะนำอ่านรายละเอียดของคำสั่ง Format ที่นี่
อ่านเพิ่ม: วิธี Delete หรือ Format C Drive ด้วย Command Prompt
2. ใช้ Diskpart Tool

DISKPART เป็นเครื่องมืออันทรงพลัง สำหจัดการ Partition ทั้งหมดจาก Command Line ก่อนรัน Tool นี้ ตรวจสอบให้แน่ใจว่าถอด USB Drive ออกแล้ว

- พิมพ์ diskpart ใน Run Prompt กด Enter
- หลัง UAC จะเปิด Command Prompt ที่รัน Tool นี้
- พิมพ์ LIST DISK แสดง Drives ทั้งหมดที่เชื่อมต่อ
- ตอนนี้เสียบ USB Drive แล้วรันคำสั่งอีกครั้ง
- ครั้งนี้ จะเห็น Drive เพิ่มขึ้นที่ต้อง Format ในกรณีของผม คือ DISK 2
- พิมพ์ SELECT DISK 2 จะได้ Prompt Disk 2 is now the selected disk
- พิมพ์ CLEAN กด Enter
- พิมพ์ CREATE PARTITION PRIMARY กด Enter
- พิมพ์ Format fs=NTFS Quick กด Enter
- พิมพ์ Assign กด Enter กำหนด Drive Letter ให้ Drive ที่ Format ใหม่
หลังทำทุกขั้นตอนเสร็จ USB Drive จะถูก Format และว่างเปล่า DISKPART Tool ทำงานต่างจาก Format Option มาตรฐานใน Windows
อ่านต่อ: วิธี Format External Hard Drive หรือ USB Drive ด้วย Windows PowerShell