title: Process reg query with spaces
body: <p>I’m trying to read a registry key value and use it within a variable latter on in the program however my registry key contains spaces and now I cant get it to work, dose anybody know hoe to process keys with spaces?</p>
  
  <pre><code>for /f "tokens=3" %%a in ('reg query "HKEY_CLASSES_ROOT\Software\VTS\TREADSTONE LT\Main" /v EXECUTE ^| find /i "REG_SZ"') do set UserNm=%%a 
  
  MSG * %UserNm%
  pause
  </code></pre>
  
  <p>I'm using Windows batch.</p>