Display the volume label of a disk.
Syntax VOL [drive:]
If the drive exists, VOL will display it's disk label and serial number and will return an %ERRORLEVEL% of 0.
If the drive does not exist VOL will return an %ERRORLEVEL% of 1.
If the drive is a CD/DVD drive with no disk loaded then VOL will return "The device is not ready" and will return an %ERRORLEVEL% of 1.
VOL is an internal command.
“I've found the Nobel label very handy because who'd want to hear anything from Betty Williams, ordinary housewife?” ~ Betty Williams Nobel Prize 1976
LABEL - Edit the volume label of a disk
BootCFG - Edit Boot.ini settings.
powershell: Get-WmiObject Win32_LogicalDisk $label
Equivalent bash command (Linux): hostname - Print or set system name
© Copyright SS64.com 1999-2013
Some rights reserved