GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing ss64.com — Label - Disk label command - Windows CMD LABEL.exeEdit a disk label. Syntax
LABEL [/MP][volume] [drive:] [label]
Key
Drive: The drive letter of the disk to be named.
label The new name for the volume.
/MP Treat the volume as a mount point or volume name.
volume The drive letter, mount point, or volume_name.
If a volume_name is specified, the /MP parameter is unnecessary.
/? Display help.
Originally designed as a reminder of which floppy disk is in the machine, disk labels can also be applied to hard drives and mapped drives. The label is shown in Windows File Explorer and most Save As dialogue boxes. Changing the disk label with LABEL requires elevated permissions. Running the LABEL command from a non-elevated command prompt will generate the error. “Access Denied as you do not have sufficient privileges.” If you do not specify a label when you use the label command, LABEL will prompt for one and display a message including the "Volume Serial Number" if one exists. A volume label can contain as many as 32 characters for NTFS volumes and as many as 11 characters for FAT volumes and can include spaces but not tabs. FAT volume labels are not case sensitive and cannot contain any of the following characters: * ? / \ | . , ; : + = [ ] < > " This limitation does not apply to NTFS volume labels, however to use a redirection character in a disk label, the label must be enclosed in double quotes (which then become part of the label). Early versions of Windows held the drive description in the registry at \CurrentVersion\Explorer\DriveIcons [×] ExamplesTo label the disk drive D: as SS64:
The drive description can also be modified with a few lines of PowerShell, this does not require elevation for (per-user) mapped drives:
Similarly in VBScript:
“A name is a label, and as soon as there is a label, the ideas disappear and out comes label-worship and label-bashing” ~ Richard Bach Related commandsVOL - Display the volume label. Copyright © 1999-2026 SS64.com
Some rights reserved |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |