Label (command)
| label | |
|---|---|
| Developers | Microsoft, IBM, Digital Research, Novell, Joe Cosentino, ReactOS Contributors |
| Release | August 1984 |
| 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 |
label is a shell command for setting the label of a volume (a.k.a. logical drive).
The command is supported for most variants of the FAT file system and for NTFS. It is available in various operating systems such as DOS,[1] OS/2,[2] Windows,[3] ReactOS,[4] DR DOS 6.0,[5] and FreeDOS.[6] It is available in MS-DOS versions 3.1 and later and IBM PC DOS releases 3 and later.[7][8]
In modern versions of Windows, changing the label requires elevated permissions.[9]
The current label is reported by both the dir and vol commands.
In Unix-like systems, various commands set a storage label. For instance, the command e2label is for an ext2 partition.

The command was originally designed to label floppy disks as a reminder of which one is in the disk drive. But it can be used for other types of storage media.[9]
Use
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 the working directory. Without label text, the command clears the label.
For example, the command line label D:Backup sets the label of D: to "Backup".
With the /MP option, the command accepts up to two arguments: volume and label. In this case, the volume argument is treated as a mount point or a volume name. If volume name is specified, the /MP option is unnecessary.
See also
References
- ^ Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, ISBN 0078819040.
- ^ "JaTomes Help - OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14.
- ^ Microsoft TechNet Label article
- ^ https://github.com/reactos/reactos/blob/master/base/shell/cmd/label.c [dead link]
- ^ "DR DOS 6.0 User Guide Optimisation and Configuration Tips" (PDF). Archived from the original (PDF) on 2019-09-30. Retrieved 2019-08-12.
- ^ "FreeDOS 1.2 Updates Package - label (FreeDOS Base)". Ibiblio.org. 2021-11-19. Retrieved 2022-09-04.
- ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
- ^ MS-DOS and Windows command line label command
- ^ a b Label - Disk label - Windows CMD - SS64.com
Further reading
- Cooper, Jim (2001). Special Edition Using MS-DOS 6.22, Third Edition. Que Publishing. 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.
- 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
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.