| label | |
|---|---|
| Developers | Microsoft,IBM,Digital Research,Novell, Joe Cosentino, ReactOS Contributors |
| Initial release | August 1984; 41 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 |
label is ashellcommand for setting thelabel of avolume (a.k.a. logical drive).
The command is supported for most variants of theFATfile system and forNTFS. It is available in variousoperating systems such asDOS,[1]OS/2,[2]Windows,[3]ReactOS,[4]DR DOS 6.0,[5] andFreeDOS.[6] It is available inMS-DOS versions 3.1 and later andIBM PC DOS releases 3 and later.[7][8]
In modern versions ofWindows, changing the label requireselevated permissions.[9]
The current label is reported by both thedir andvol commands.
InUnix-like systems, various commands set a storage label. For instance, the commande2label is for anext2 partition.

The command was originally designed to labelfloppy disks as a reminder of which one is in the disk drive. But it can be used for other types of storage media.[9]
With no options, the command accepts a single argument may start with a drive letter (ending with a colon) and may end with label text. Without a drive letter, the command operates on the volume associated with theworking directory. Without label text, the command clears the label.
For example, the command linelabel D:Backup sets the label ofD: to "Backup".
With the/MP option, the command accepts up to two arguments:volume andlabel. In this case, thevolume argument is treated as a mount point or a volume name. If volume name is specified, the/MP option is unnecessary.