Label (command)

labelDeveloper(s)| 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: Proprietary commercial software
FreeDOS, ReactOS: GNU General Public License
Website| docs.microsoft.com/en-us/windows-server/administration/windows-commands/label

In computing, `label` is a command included with some operating systems (e.g., DOS,[1] IBM OS/2,[2] Microsoft Windows[3] and ReactOS[4]). It is used to create, change, or delete a volume label on a logical drive, such as a hard disk partition or a floppy disk. Used without parameters, `label` changes the current volume label or deletes the existing label.

## Contents

* 1 History
* 2 Syntax
* 3 Example for the command.
* 4 Supported file systems
* 5 Limitations
* 5.1 FAT volume labels
* 5.2 NTFS volume labels
* 6 See also
* 7 References
* 8 Further reading
* 9 External links

## History

5 1⁄4-inch floppy disk with hand-written label on it.

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 in MS-DOS versions 3.1 and later and IBM PC DOS releases 3 and later.[6] It is an external command. MS-DOS 4.0x and earlier used `label.com` as the external file. MS-DOS 5.0 and Windows use `label.exe` as the external file.[7] DR DOS 6.0 includes an implementation of the `label` command.[8] The FreeDOS version was developed by Joe Cosentino and is licensed under the GPL.[9]

In modern versions of Microsoft Windows, changing the disk label requires elevated permissions.[5] The Windows `dir` command displays the volume label and serial number (if it has one) as part of the directory listing.

In Unix and other Unix-like operating systems, the name of the equivalent command differs from file system to file system. For instance, the command `e2label` can be used for ext2 partitions.

## Syntax

LABEL [drive:][label]
LABEL [/MP] [volume] [label]

Arguments:

* `drive:` This command-line argument specifies the drive letter of a drive.
* `label` Specifies the label of the volume.
* `volume` Specifies the drive 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: If `volume` name is specified, the `/MP` flag is unnecessary.

## Example for the command.

C:\Users\root>label D: Backup

## Supported file systems

* FAT12
* FAT16
* FAT32
* exFAT
* NTFS

## Limitations

### FAT volume labels

FAT volumes have the following limitations:[5]

* Volume labels can contain as many as 11 character bytes and can include spaces, but no tabs. The characters are in the OEM code page of the system that created the label.
* Volume labels cannot contain the following characters: ? / \ | . , ; : + = [ ] < > "
* Volume labels are stored as upper-case regardless of whether they contain lower-case letters.

### NTFS volume labels

* NTFS volume labels can contain as many as 32 Unicode characters.[5]

## See also

* Vol (command) — Displays the disk volume label and serial number.
* List of DOS commands

## References

1. ↑ Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, ISBN 0078819040, https://books.google.com/books?id=UW9GAAAAYAAJ.
2. ↑ "JaTomes Help - OS/2 Commands". http://www.jatomes.com/Help/Os2Cmd.php#LABEL.
3. ↑ Microsoft TechNet Label article
4. ↑ https://github.com/reactos/reactos/blob/master/base/shell/cmd/label.c [|permanent dead link|dead link}}]
5. ↑ 5.0 5.1 5.2 5.3 Label - Disk label - Windows CMD - SS64.com
6. ↑ Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. 2003. ISBN 0-7356-1812-7.
7. ↑ MS-DOS and Windows command line label command
8. ↑ "DR DOS 6.0 User Guide Optimisation and Configuration Tips". https://www.4corn.co.uk/archive/docs/DR DOS 6.0 User Guide-opt.pdf.
9. ↑ "FreeDOS 1.2 Updates Package - label (FreeDOS Base)". Ibiblio.org. 2021-11-19. http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/label.html. Retrieved 2022-09-04.

## Further reading

* Special Edition Using MS-DOS 6.22, Third Edition. Que Publishing. 2001. ISBN 978-0789725738.
* Tim O'Reilly; Troy Mott; Walter Glenn (1999). Windows 98 in a Nutshell: A Desktop Quick Reference. O'Reilly. ISBN 978-1565924864. https://archive.org/details/windows98innutsh00orei.
* John Paul Mueller (2007). Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000. John Wiley & Sons. ISBN 978-0470165799.

## External links

* label | Microsoft Docs

* v
* t
* e

Windows command-line programs and shell builtins

* COMMAND.COM
* Command Prompt
* Windows PowerShell
* Recovery Console

File system navigation|

* cd (chdir)
* dir
* popd
* pushd
* tree

File management|

* attrib
* cacls
* cipher
* compact
* copy
* del (erase)
* deltree
* expand
* icacls
* makecab
* mkdir (md)
* mklink
* move
* recover
* ren (rename)
* replace
* rmdir (rd)
* robocopy
* tar
* xcopy

Disk management|

* chkdsk
* convert
* defrag
* diskcomp
* diskcopy
* diskpart
* drvspace
* fdisk
* format
* label
* manage-bde
* subst
* scandisk
* sys
* vol
* vssadmin

Processes|

* at
* exit
* kill
* powercfg
* runas
* sc
* schtasks
* shutdown
* start
* taskkill
* tasklist

Registry|

* assoc
* ftype
* reg
* regini
* regsvr32

User environment|

* date
* mode
* path
* set
* setx
* time
* title
* ver
* whoami

File contents|

* comp
* edit
* edlin
* fc
* find
* findstr
* print
* type

Scripting|

* choice
* clip
* cscript
* doskey
* echo
* for
* forfiles
* goto
* if
* more
* pause
* prompt
* rem
* timeout

Networking|

* arp
* BITSAdmin
* cURL
* getmac
* hostname
* ipconfig
* net
* netsh
* netstat
* nslookup
* PathPing
* ping
* route
* scp
* sftp
* ssh
* ssh-add
* ssh-agent
* ssh-keygen
* ssh-keyscan
* tracert
* winrm
* winrs

Maintenance and care|

* driverquery
* eventcreate
* eventtriggers
* msiexec
* ntbackup
* sfc
* systeminfo
* w32tm
* WBAdmin
* winsat
* wmic

Boot management|

* bcdedit
* bootcfg
* fixboot
* fixmbr

Software development|

* debug
* exe2bin
* QBasic

Miscellaneous|

* cls
* dism
* dpath
* gpupdate
* help
* MSCDEX
* pentnt
* wsl

* List of DOS commands
* Environment variables

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Label (command). Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Label_(command)&oldid=674356"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template