Skip to content

What is FORMAT Windows command?

The FORMAT command in Windows allows users to format drives and partitions, preparing them for data storage. It is a powerful tool for managing storage devices efficiently.

Terminal window
dir [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
OptionDescription
/A[[:]attributes]Displays files with the specified attributes.
/BUses bare format (no heading information or summary).
/CDisplays thousand separator in file sizes.
/DSame as wide but files are list sorted by column.
/LUses lowercase.
/NDisplays long list format without owner info.
/O[[:]sortorder]List by files in sorted order.
/PPauses after each screen full of information.
/QDisplay the owner of the file.
/SDisplays files in specified directory and all subdirectories.
/T[[:]timefield]Controls which time field is displayed or used for sorting.
/WUses wide list format.
/XThis displays the short names generated for non-8dot3 file names.
/4Displays four-digit years.
ParameterDescription
[drive:]Specifies the drive to list.
[path]Specifies the directory or file.
[filename]Specifies the filename to list.
Terminal window
format E: /fs:exfat

Formats the Drive E to the exFAT file system.

Terminal window
format F: /q

Performs a quick format on Drive F without checking for bad sectors.

Format a Drive with a Specific Allocation Unit Size

Section titled “Format a Drive with a Specific Allocation Unit Size”
Terminal window
format G: /fs:ntfs /a:64K

Formats Drive G to the NTFS file system with an allocation unit size of 64 kilobytes.

Terminal window
format H: /v:MyDrive

Formats Drive H and assigns the label “MyDrive” to it.

Terminal window
format I: /fs:ntfs /c

Formats Drive I to the NTFS file system with compression enabled.

To use the format command in CMD, execute the following command:

Terminal window
format D: /FS:NTFS

What is the purpose of the format command in Windows CMD?

Section titled “What is the purpose of the format command in Windows CMD?”

The format command is used to format a disk or partition in Windows CMD, preparing it for use by an operating system.

Terminal window
format C:

How can I format a specific drive to a different file system?

Section titled “How can I format a specific drive to a different file system?”

You can format a specific drive to a different file system using the format command with the /FS parameter followed by the desired file system type.

Terminal window
format E: /FS:FAT32

Can I perform a quick format using the format command in CMD?

Section titled “Can I perform a quick format using the format command in CMD?”

Yes, you can perform a quick format by adding the /Q parameter to the format command. This option skips bad sector checking during the format process.

Terminal window
format F: /Q

How do I label a drive during formatting in Windows CMD?

Section titled “How do I label a drive during formatting in Windows CMD?”

To label a drive during formatting, include the /V parameter followed by the desired label name in the format command.

Terminal window
format G: /V:BackupDrive

Is there a way to force the format operation on a drive in CMD?

Section titled “Is there a way to force the format operation on a drive in CMD?”

If you want to force the format operation on a drive without user interaction, you can use the /Q parameter along with the /X parameter in the format command.

Terminal window
format H: /Q /X

What is the command to perform a full format in Windows CMD?

Section titled “What is the command to perform a full format in Windows CMD?”

To perform a full format on a drive, you can use the /P parameter followed by the number of passes to write zeros during the format process.

Terminal window
format I: /P:2

How can I list all available format options in CMD?

Section titled “How can I list all available format options in CMD?”

To view all available format options and parameters in CMD, you can use the /? parameter with the format command.

Terminal window
format /?
  1. Creating a new file system on a specified drive.
  2. Formatting a drive to remove all data and prepare it for use.
  3. Setting the file system type, such as FAT, FAT32, or NTFS.
  4. Performing a quick format to erase the file system without checking for bad sectors.
  5. Performing a full format to erase the file system and check for bad sectors.
  6. Formatting a drive with specific allocation unit sizes.
  7. Labeling a drive with a specific name during formatting.