VOL – Windows CMD Command
Display the volume label of a disk.
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 or is not ready (CD/DVD drive with no disk loaded), VOL will return an %ERRORLEVEL% of 1.
If several drives are given, VOL will iterate through and check each of them. If any drive is invalid it will change the errorlevel but will still display information about the others.
If the Volume label was successfully displayed %ERRORLEVEL% = 0
If Drive not found or bad parameters given %ERRORLEVEL% = 1
VOL is an internal command.
vol c: h: