Q:

Querying a reg key with a space in it

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. 
I so far cannot even get the first part of this to work, due to the reg key having a space in "Windows XP"
The batch file so far:
@echo off

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB932823-v3\>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

the gotos are just placeholders for future code at present. 
I get the following error at the moment - Error: Invalid command-line parameters
Anyone got an idea how I can get around this? 
thanks,
Rob

A:

Use quotes (") around key path. 
e.g.
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB932823-v3">nul

