The following batch script will read the volume label for a given disk (eg: c:) into a variable called %v%
@echo off & setLocal enableDELAYedexpansion
for /f "tokens=1-5* delims= " %%a in ('vol c:') do (
set v=%%f
goto :done here
)
:done here
echo label is !v!
