Windows XP - Format a pendrive in command line

December 2016


How can I format a pendrive in command line?


Open the DOS prompt (Start > Run > cmd)
  • Type:
    • FORMAT X: /FS:FAT32 /Q /V:PenDrive 
  • This will reformat the Pen drive, using the FAT32 file system, and label the drive as PenDrive. Replace X: with the actual drive letter of your Pen Drive.
  • For more help on this command, type:
    • FORMAT /? 

Thanks to mancy for this tip.

Related :

This document entitled « Windows XP - Format a pendrive in command line » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.