Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

label (command)

From Wikipedia, the free encyclopedia
(Redirected fromLABEL (DOS command))
label
Developer(s)Microsoft,IBM,Digital Research,Novell, Joe Cosentino, ReactOS Contributors
Initial releaseAugust 1984; 40 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

Incomputing,label is acommand included with someoperating systems (e.g.,DOS,[1]IBMOS/2,[2]MicrosoftWindows[3] andReactOS[4]). It is used to create, change, or delete avolume label on alogical drive, such as ahard disk partition or afloppy disk. Used without parameters,label changes the current volume label or deletes the existing label.

History

[edit]
5 1⁄4-inchfloppy 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 inMS-DOS versions 3.1 and later andIBM PC DOS releases 3 and later.[6]It is an external command. MS-DOS 4.0x and earlier usedlabel.com as the external file. MS-DOS 5.0 and Windows uselabel.exe as the external file.[7]DR DOS 6.0 includes an implementation of thelabel command.[8] TheFreeDOS version was developed by Joe Cosentino and is licensed under theGPL.[9]

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

InUnix and otherUnix-like operating systems, the name of the equivalent command differs fromfile system to file system. For instance, the commande2label can be used forext2 partitions.

Syntax

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

Arguments:

Flags:

  • /MP Specifies that the volume should be treated as a mount point or volume name.

Note: Ifvolume name is specified, the/MP flag is unnecessary.

Example for the command.

[edit]
C:\Users\root>label D: Backup

Supported file systems

[edit]

Limitations

[edit]

FAT volume labels

[edit]

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 theOEM 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

[edit]

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. ^abcdLabel - Disk label - Windows CMD - SS64.com
  6. ^Wolverton, Van (2003).Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition.Microsoft Press.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"(PDF). Archived fromthe original(PDF) on 2019-09-30. Retrieved2019-08-12.
  9. ^"FreeDOS 1.2 Updates Package - label (FreeDOS Base)". Ibiblio.org. 2021-11-19. Retrieved2022-09-04.

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=1108466328"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp