Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/future4tech/public_html/wp-includes/functions.php on line 6114
LABEL – Windows CMD Command - Future4Tech

LABEL – Windows CMD Command

Edit a disk label.

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.

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"

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *


Notice: ob_end_flush(): Failed to send buffer of zlib output compression (0) in /home/future4tech/public_html/wp-includes/functions.php on line 5464