Microsoft DOS label command

Updated: 09/15/2017 by Computer Hope

About label

Label is used to view or change the label of the computer disk drives.


The label is an external command that is available in the below Microsoft operating systems. MS-DOS 4.0x and earlier used as the external file. MS-DOS 5.0 and versions of Windows that support this command use label.exe as the external file.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7
Windows 8
Windows 10

Label syntax

Windows Vista and later syntax

LABEL [drive:][label]
LABEL [/MP] [volume] [label]

drive: Specifies the drive letter of a drive.
label Specifies the label of the volume.
/MP Specifies that the volume should be treated as a mount point or volume name.
volume Specifies the drive letter (followed by a colon), mount point, or volume name. If volume name is specified, the /MP flag is unnecessary.

Windows XP and earlier syntax

LABEL [drive:][label]

drive: Specifies the drive letter of a drive.
label Specifies the label of the volume.

Label examples

label a: hope

This would label the disk currently in the drive to "hope", but will not label if your disk is write protected.

Possible issues

If your hard disk label contains ASCII or other extended characters and you are running MS-DOS 6.0 or lower if you run ScanDisk data or the entire hard drive can become corrupt.

Because ScanDisk is looking for corrupt or incorrect data, if the label has ASCII or any unrecognized characters it will attempt to fix those characters. If ScanDisk attempts to fix your label it may remove all information and place it into a CHK file.

If hard drive has unrecognizable characters, unable to delete partition using fdisk.

Use label to recreate the label and then use fdisk to delete the partition after label created.

Questions and answers

Reference Question
CH000532 How to rename or label a disk drive.
CH001038 How do I view the name or label of a hard drive?

Additional information

  • See our label definition for further information and related links on this term.