@LABEL[d:]:  Returns the volume label of the specified disk drive. The drive letter must be followed by a colon.

 

If the argument is a partial filename without a drive, @LABEL will expand the filename to get the drive.

 

Examples:

 

echo %@label[C:]

Windows7

 

echo %@label[%_disk:]

Development

 

See also: VOL.