Formats a disk for use with MS-Dos.
FORMAT drive: [/Switches]
|/V[:label]||Specifies a volume label. If the /V switch is omitted, or label is not specified, a prompt for a volume label is displayed after formatting is completed.
If no volume label is required, the prompt can be avoided by specifying: /V:""
If a label is specified and more than one disk is formatted in a session, all of the disks will be given the same volume label.
|/Q||"Quick" format of a previously formatted disk.
The disk's file allocation table (FAT) and root directory are deleted but it is not scanned for bad areas.
|/S||Copies system files to the formatted disk (to make a boot disk).|
|/B||Allocates space on the formatted disk for system files.|
|/F:size||Formats a disk to a capacity other than that for which the drive was designed.
size can be: 360, 720, 1.2, 1.44, 2.88.
|/T:tracks||Specifies the number of tracks per disk side.|
|/N:sectors||Specifies the number of sectors per track.|
|/1||Formats a single side of a floppy disk.|
|/4||Formats a 5.25-inch 360K floppy disk in a high-density drive.|
|/8||Formats eight sectors per track|
|/C||Tests clusters that are currently marked "bad." By default, if a disk contains clusters that have been marked as "bad", FORMAT does not retest the clusters; it simply leaves them marked "bad".|
|/U||Unconditional format. This switch was instituted in Dos 5 along with the "Unformat" command. In Dos 7.x the Unformat command has been dropped and all formatting is unconditional. This switch is therefore redundant but presumably maintained so that batch files written with it will not fail.|
|/AUTOTEST||Formatting proceeds without further user input or warning messages. As this will also work with hard drives, it is probably advisable to preconfigure the command in a batch file rather than using it directly from the command line. The AUTOEST switch can be used in conjunction with the /U, /S, and /F switches. It is not compatible with /Q (causing an error message) and /V is ignored. |
|/BACKUP||Not sure what this does. Seems to be similar to /AUTOTEST except that it asks for a Volume label, and displays data on number of bytes available, etc. Haven't tried it with c: drive so don't know whether it warns before formatting a hard drive.|
|/SELECT||Not sure what this does - but it seems to "unformat" a disk. Anyway, it renders the disk a "non-system disk" (which can be reformatted).|
|/Z:n||Specifies the cluster size in multiples of 512 bytes. Valid values of n are:
|n||Cluster size||n||Cluster size|
- Unless used with the /Q switch, FORMAT assumes that a floppy disk in a 3.5" drive is to be formatted at 1.44Mb. If the disk is 720 Kb, the /F:720 switch must be used or an error message results. If the /Q switch is used, FORMAT checks the existing format and will detect a disk formatted at 720 Kb.
- By default, and unless the /Q switch is used, each sector on the disk is checked during the formatting process to ensure that the sector can properly store data. If a bad sector is located, it is marked and is not used.
- When formatting is complete, a message is displayed showing the total disk space, any space marked as defective, the space used by the operating system (if any), and the space available for files.
- When formatting a hard disk, a warning is first displayed:
WARNING, ALL DATA ON NON-REMOVABLE DISK DRIVE x: WILL BE LOST!
Proceed with Format (Y/N)?
- Although disks can be formatted in "non-standard" ways, this is not advised. Both disks and drives are designed for operation at their specified formats and faults will occur if used at other formats.
- FORMAT cannot be used on a virtual drive created using the SUBST command.
A fast way to reformat a floppy is:
ren /? | format /q/v:"" > nul
The ren /? part feeds, along with a load of redundant material, an "enter", followed by a "n, enter" in response to FORMAT's prompts. The >nul prevents the display of the somewhat messy mixed up output of the two commands.
|0||The format operation was successful.|
|3||FORMAT was terminated by Ctrl-C before completion|
|4||A fatal error occurred (any error other than 0, 3, or 5).|
|5 ||The user pressed N in response to the prompt "Proceed with Format (Y/N)?" to stop the process.|
|File Name||Default Location||Dos Ver.||Win Ver.||Size||Date||Source|
Superscripts denote which same size files, if any, are identical (using FC).