Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

label (command)

From Wikipedia, the free encyclopedia
(Redirected fromLABEL (DOS command))
label
DevelopersMicrosoft,IBM,Digital Research,Novell, Joe Cosentino, ReactOS Contributors
Initial releaseAugust 1984; 41 years ago (1984-08)
Operating systemMS-DOS,PC DOS,SISNE plus,OS/2,eComStation,ArcaOS,Windows,DR DOS,ROM-DOS,PTS-DOS,FreeDOS,ReactOS
PlatformCross-platform
TypeCommand
LicenseMS-DOS, PC DOS, Windows, OS/2:Proprietarycommercial software
FreeDOS, ReactOS:GNU General Public License
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/label

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.

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

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]

Use

[edit]

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.

See also

[edit]

References

[edit]
  1. ^Jamsa, Kris A. (1993),DOS: The Complete Reference, Osborne McGraw-Hill,ISBN 0078819040.
  2. ^"JaTomes Help - OS/2 Commands".www.jatomes.com. Archived fromthe original on 2019-04-14.
  3. ^Microsoft TechNet Label article
  4. ^https://github.com/reactos/reactos/blob/master/base/shell/cmd/label.c[dead link]
  5. ^"DR DOS 6.0 User Guide Optimisation and Configuration Tips"(PDF). Archived fromthe original(PDF) on 2019-09-30. Retrieved2019-08-12.
  6. ^"FreeDOS 1.2 Updates Package - label (FreeDOS Base)". Ibiblio.org. 2021-11-19. Retrieved2022-09-04.
  7. ^Wolverton, Van (2003).Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition.Microsoft Press.ISBN 0-7356-1812-7.
  8. ^MS-DOS and Windows command line label command
  9. ^abLabel - Disk label - Windows CMD - SS64.com

Further reading

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=Label_(command)&oldid=1330126167"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp