label (command)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
label
DevelopersMicrosoft, IBM, Digital Research, Novell, Joe Cosentino, ReactOS Contributors
Initial releaseAugust 1984; 41 years ago (1984-08)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    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: Proprietary commercial software
    FreeDOS, ReactOS: GNU General Public License
    Websitedocs.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.

    History

    [edit | edit source]
    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

    [edit | edit source]
    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: If volume name is specified, the /MP flag is unnecessary.

    Example for the command.

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

    Supported file systems

    [edit | edit source]

    Limitations

    [edit | edit source]

    FAT volume labels

    [edit | edit source]

    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

    [edit | edit source]

    See also

    [edit | edit source]

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Microsoft TechNet Label article
    4. ^ https://github.com/reactos/reactos/blob/master/base/shell/cmd/label.c [dead link]
    5. ^ a b c d Label - Disk label - Windows CMD - SS64.com
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ MS-DOS and Windows command line label command
    8. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    9. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

    Further reading

    [edit | edit source]
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]