title: How to get multiple parameters including spaces with wmic (cmd commandline)?
body: <p>The volume name of my drive C: is <code>300GB WD3000HLFS-0</code> (including a space between '300GB' and 'WD3000HLFS-0')<br>
  The volume serial number of C: is <code>1234-ABCD</code><br>
  (according to the command <code>VOL</code>)</p>
  
  <p>I'm not successful with this code:</p>
  
  <pre><code>SET WMICcmd="WMIC logicaldisk WHERE VolumeSerialNumber='1234ABCD' get Caption^,VolumeName^,VolumeSerialNumber^"
  FOR /F "tokens=1,2,3 skip=1" %%d IN (' %WMICcmd% ')  DO (
  
  ECHO '%%d' is the Drive with the VolumeName '%%e' and VolumeSerialNumber '%%f'
  SET ODrive=%%d
  )
  </code></pre>
  
  <p>How can I get this VolumeName with the help of WMIC and with a specific VolumeSerialNumber in a Windows 7 commandline batch in addition to other parameters?<br></p>