Formatting an USB flash drive from the command prompt is a simple process that can be achieved using the format command, which works for most versions of Microsoft Windows. This article will show you how.
Connect the USB flash drive to your PC. Then click on Start > Run. Type
and click on OK.
Your USB flash drive will be assigned a letter. For the purposes of this example, we have provided a command using the letter G but note that you should replace this letter with that which is assigned to your key.
Type the following command, followed by Enter:
format /q /x G:
Note: The q parameter stands for "quick format" and the x parameter will force the selected volume to dismount if needed.