title: Querying a reg key with a space in it
body: <p>I am trying to write a batch file that will determine if a PC has a specific MS Hotfix installed, and is running XP SP2, not SP3.</p>
  
  <p>I so far cannot even get the first part of this to work, due to the reg key having a space in "Windows XP"</p>
  
  <p>The batch file so far:</p>
  
  <pre><code>@echo off
  
  reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB932823-v3\&gt;nul
  if %errorlevel% EQU 0 goto :nohotfix
  if %errorlevel% EQU 1 goto :hotfixpresent
  
  
  :Hotfixpresent
  @echo hot fix is present
  pause
  
  :nohotfix
  @echo No hotfix is present
  pause
  </code></pre>
  
  <p>the gotos are just placeholders for future code at present.</p>
  
  <p>I get the following error at the moment - Error: Invalid command-line parameters</p>
  
  <p>Anyone got an idea how I can get around this?</p>
  
  <p>thanks,</p>
  
  <p>Rob</p>