Ask a question »

Windows XP - Format a pendrive in command line

September 2015

[Windows XP] Format a pendrive in command line


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.
For unlimited offline reading, you can download this article for free in PDF format:

See also

In the same category

Published by aakai1056.
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.