Microsoft DOS label command
Quick links
About label
Availability
Syntax
Examples
Possible issues
Questions and answers
Label is used to view or change the label of the computer disk drives.
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
Creates, changes, or deletes the volume label of a disk.
LABEL [drive:][label]
label a: mydisk
This would label the disk currently in the drive to "mydisk", but will not label if your disk is write protected.
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 disk drive can become corrupt.
Because scandisk is looking for corrupt or incorrect data, it is possible if the label has ASCII or any unrecognized characters that it will attempt to fix it. 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.
| Reference | Issue / Question |
| CH000532 | How to rename or label a disk drive. |
| CH001038 | How do I view the name or label of a hard drive? |
