@echo off
if "%~s1"=="" goto end
for /f "skip=1 delims= " %%a in ('Wmic LogicalDisk Get Caption') do (
call set drive=%%drive%% %%a
)
echo %drive%
set/p=&exit/b 0
:end
Setlocal EnableDelayedExpansion
for /f "skip=1 delims= " %%a in ('Wmic LogicalDisk Get Caption') do (
set a=%%a
set drive=!drive! !a!
)
echo %drive%&EndLocal
set/p=&exit/b 0
