Batch Script - FORMAT


Advertisements

This batch command formats a disk to use Windows-supported file system such as FAT, FAT32 or NTFS, thereby overwriting the previous content of the disk.

Syntax

format [drive]

Where drive is the drive which needs to be formatted.

Example

@echo off 
format D:\

Output

With the above command, D drive will be formatted.

batch_script_commands.htm
Advertisements