Developer(s) | Microsoft,IBM,Digital Research,Novell, Joe Cosentino, ReactOS Contributors |
---|---|
Initial release | August 1984; 40 years ago (1984-08) |
Operating system | MS-DOS,PC DOS,SISNE plus,OS/2,eComStation,ArcaOS,Windows,DR DOS,ROM-DOS,PTS-DOS,FreeDOS,ReactOS |
Platform | Cross-platform |
Type | Command |
License | MS-DOS, PC DOS, Windows, OS/2:Proprietarycommercial software FreeDOS, ReactOS:GNU General Public License |
Website | docs |
Incomputing,label
is acommand included with someoperating systems (e.g.,DOS,[1]IBMOS/2,[2]MicrosoftWindows[3] andReactOS[4]). It is used to create, change, or delete avolume label on alogical drive, such as ahard disk partition or afloppy disk. Used without parameters,label
changes the current volume label or deletes the existing label.
The command was originally designed to label floppy disks as a reminder of which one is in the machine. However, it can also be applied to other types of drive such as mapped drives.[5]
It is available inMS-DOS versions 3.1 and later andIBM PC DOS releases 3 and later.[6]It is an external command. MS-DOS 4.0x and earlier usedlabel.com
as the external file. MS-DOS 5.0 and Windows uselabel.exe
as the external file.[7]DR DOS 6.0 includes an implementation of thelabel
command.[8] TheFreeDOS version was developed by Joe Cosentino and is licensed under theGPL.[9]
In modern versions ofMicrosoft Windows, changing the disk label requireselevated permissions.[5] The Windowsdir
command displays the volume label and serial number (if it has one) as part of the directory listing.
InUnix and otherUnix-like operating systems, the name of the equivalent command differs fromfile system to file system. For instance, the commande2label
can be used forext2 partitions.
LABEL [drive:][label]LABEL [/MP] [volume] [label]
Arguments:
drive:
Thiscommand-line argument specifies thedrive letter of a drive.label
Specifies the label of the volume.volume
Specifies thedrive letter (followed by a colon),mount point, or volume name.Flags:
/MP
Specifies that the volume should be treated as a mount point or volume name.Note: Ifvolume
name is specified, the/MP
flag is unnecessary.
C:\Users\root>label D: Backup
FAT volumes have the following limitations:[5]