LABEL – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Edit a disk label.
1 2 3 4 5 6 7 8 9 10 |
Syntax LABEL [/MP][volume] [drive:][label] Key Drive: The drive letter of the disk to be named. label The 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.
Changing the disk label requires elevated permissions. Running the LABEL command from a normal command prompt will generate the error. “Access Denied as you do not have sufficient privileges.”
By default, the SYSTEM account should have full access to the drive (root folder).
If you do not specify a label when you use the label command, LABEL displays 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 volumes.
Disk labels should not be confused with the drive description held in the registry.
1 2 3 4 5 6 7 8 9 10 11 12 |
Example To label the disk drive D: as F4T, C:\> label d:F4T The drive descriptor shown in Windows Explorer can also be modified with a few lines of PowerShell: # Rename drive S: to 'Shared' $objshell = New-Object -ComObject "Shell.Application" $mapDrive="S:" $objshell.NameSpace($mapDrive).Self.Name = "Shared" |