Microsoft DOS label command

Quick links

About label
Availability
Syntax
Examples
Possible issues
Questions and answers

About label

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

Availability

The label.exe is an external command that is available in the below Microsoft operating systems.

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

Syntax

Windows Vista and later syntax
Windows XP and earlier 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.

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.