FORMAT

RECENT NEWS

12/18/2015 - Hello! We're excited to announce that Mental Works Computing Software will soon be featuring

12/11/2015 - We're going to announce Dr.Batcher 3.0 Alpha with batch files debugger support soon. If you want to start...

News history...

TESTIMONIALS

Rob van der Woude:
"Mental Works Computing Software has created a nice tool for...

Andrew Jaritsyn:
“I used to write batch files with the help of Notepad, but...

Steve H.:
“This tool helped me to write some batch files in a couple...

More...

FORMAT

Formats a disk into one of supported by Windows file systems.

Syntax:

FORMAT Volume [/fs:FAT|FAT32|NTFS] [/v:Label] [/q] [/a:UnitSize] [/c] [/x] [/p:Passes]

or

FORMAT Volume [/v:Label] [/q] [/f:Size] [/p:Passes]

or

FORMAT Volume [/v:Label] [/q] [/t:Tracks /n:Sectors] [/p:Passes]

or

FORMAT Volume [/v:Label] [/q] [/p:Passes]

or

FORMAT Volume [/q]

Volume – drive letter, mount point or volume name of the drive to be formatted.

/fs – file system: FAT/FAT32/NTFS. Floppy drives can be formatted in FAT only.

/v – volume label.

/a – allocation unit size. Valid values are 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K for all file systems.

/q – quick format: doesn’t perform sector-by-sector scan for bad areas.

/f – size of floppy disk to be formatted. Valid values are 160, 180, 320, 360, 640, 720, 1.2, 1.23, 1.44, 2.88, or 20.8.

/t – number of the tracks on the disk. Should be used only with /n option.

/n – number of sectors per track. Should be used only with /t option.

/p – writes zeros on every sector of volume for the specified number of passes.

/c – compresses new files on the volume by default (NTFS only).

/x – dismounts the volume before formatting if necessary.

Usage:

Switches /q and /p cannot be used together: /q overrides /p.

If you don’t specify the volume label after /v, you will be prompted for it after format being complete.

You must have administrator permissions to format a hard drive.

WARNING: FORMAT command deletes all data on the disk.

FAT file system allows maximum amount of clusters 65526. FAT32 file system allows maximum amount of clusters 4177917, minimal – 65527. NTFS compression is not supported for drives with allocation unit size bigger than 4096.

Examples:

Quick-format for drive G: with setting label FREESPACE:

FORMAT g: /q /v:FREESPACE

 

Subscribe batch files programming newsletter (no spam):

Subscribe

Unsubscribe