Label
Syntax
label [/MP][Volume][Label]
Parameters
Remarks
- Windows displays the volume label as part of the directory listing. If a volume serial number exists, Windows displays this number as well.
- Label command messages
If you do not specify a label when you use the label command, label displays a message in the following format:
Volume in drive A is xxxxxxxxxxx Volume Serial Number is xxxx-xxxx Volume label (11 characters, ENTER for none)?
The "Volume Serial Number" part of the message is not displayed if the disk has no serial number.
You can type the volume label you want or press ENTER to delete the current label. If a disk has a label and you press ENTER for none, label prompts you with the following message:
Delete current volume label (Y/N)? Press Y to delete the label; press N to keep the label.
- Limitations on volume label names
A volume label can contain as many as 32 characters for NTFS volumes and as many as 11 characters for file allocation table (FAT) volumes and can include spaces but no tabs.
FAT volume labels cannot contain any of the following characters:
* ? / \ | . , ; : + = [ ] < > "
This limitation does not apply to NTFS volumes.
For FAT volumes, volume labels are stored as uppercase regardless of whether they contain lowercase letters. NTFS volume labels retain and display the case used when the label was created.
Examples
label a:sales-july
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |