LABEL

Creates, changes, or deletes the volume label of a disk.

LABEL {[drive:][label] | [/MP] [volume] [label]}

Where:

  • drive: - Specifies the drive letter followed by a colon :.
  • label - Specifies the volume label.
  • /MP - Specifies that the volume should be treated as a mount point or volume name.
  • volume - Specifies the drive letter followed by a colon :, mount point, or volume name. /MP is not required if the volume name is specified.

If the specified drive or volume does not have a label, it will be created; if it already has a label and it is different from the one specified, it will be changed; if the specified label matches the existing one, it will be deleted.

Example: Specify the label dude in the F: drive (if it doesn't exist yet, create it, if it exists but is not called dude, modify it, and if it exists and is called dude, delete it):

label F:dude

Comments