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.
Related Commands:
LABEL - Edit the volume label of a disk
BootCFG - Edit Boot.ini settings.
Equivalent Linux BASH commands:
hostname - Print or set system name
uname - Print system information