Site hosted by Angelfire.com: Build your free website today!

MS-DOS External Commands

The FORMAT Command

Description:

Formats a disk for use with MS-DOS.

Command Syntax:

FORMAT drive: [/V[:label]] [/Q] [/U] [/F:size] [/B | /S]
FORMAT drive: [/V[:label]] [/Q] [/U] [/T:tracks /N:sectors] [/B | /S]
FORMAT drive: [/V[:label]] [/Q] [/U] [/1] [/4] [/B | /S]
FORMAT drive: [/Q] [/U] [/1] [/4] [/8] [/B | /S]

Explanation of Syntax:

/V[:label] specifies the volume label.
[/Q] performs a quick format.
[/U] performs an unconditional format.
[/F:size] specifies the size of the floppy disk to format (such as 160, 180, 320, 360, 720, 1.2, 1.44, 2.88).
[/B] allocates space on the formatted disk for system files.
[/S] copies system files to the formatted disk.
[/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.

Command Use:

This command can be used at the command prompt and in batch files.