Label (command) explained

label
Developer:Microsoft, IBM, Digital Research, Novell, Joe Cosentino, ReactOS Contributors
Operating System:MS-DOS, PC DOS, SISNE plus, OS/2, eComStation, ArcaOS, Windows, DR DOS, ROM-DOS, PTS-DOS, FreeDOS, ReactOS
Platform:Cross-platform
Genre:Command
License:MS-DOS, PC DOS, Windows, OS/2: Proprietary commercial software
FreeDOS, ReactOS: GNU General Public License

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, OS/2,[1] Windows,[2] ReactOS,[3] DR DOS 6.0,[4] and FreeDOS.[5] It is available in MS-DOS versions 3.1 and later and IBM PC DOS releases 3 and later.[6] [7]

In modern versions of Windows, changing the label requires elevated permissions.

The current label is reported by both the [[dir (command)|dir]] and [[vol (command)|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.[8]

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 sets the label of to "Backup".

With the option, the command accepts up to two arguments: and . In this case, the argument is treated as a mount point or a volume name. If volume name is specified, the /MP option is unnecessary.

See also

Further reading

External links

Notes and References

  1. Web site: JaTomes Help - OS/2 Commands . www.jatomes.com . dead . https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php . 2019-04-14.
  2. https://technet.microsoft.com/en-us/library/bb490925.aspx Microsoft TechNet Label article
  3. https://github.com/reactos/reactos/blob/master/base/shell/cmd/label.c
  4. Web site: DR DOS 6.0 User Guide Optimisation and Configuration Tips . 2019-08-12 . https://web.archive.org/web/20190930135943/http://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf . 2019-09-30 . dead .
  5. Web site: FreeDOS 1.2 Updates Package - label (FreeDOS Base) . Ibiblio.org . 2021-11-19 . 2022-09-04.
  6. Book: Wolverton. Van. Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. 2003. Microsoft Press. 0-7356-1812-7.
  7. https://www.computerhope.com/labelhlp.htm MS-DOS and Windows command line label command
  8. https://ss64.com/nt/label.html Label - Disk label - Windows CMD - SS64.com