Registry Query

  • Thread starter Thread starter davedom.mis
  • Start date Start date
D

davedom.mis

I am trying to use a batch file to query a registry entry. I am using
reg.exe to accomplish this.

If I do the following it works and shows all the stings for this key:

reg query
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\winzip

I want to query a key that has spaces in it, such as:

reg query
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Remote
Administrator v2.2

When i try this, i get: Error: Invalid command-lin parameters.

I have tried using _ and " in place of the spaces. This has not worked.


Any suggestions?
 
use "" around the full key name

Example
reg query
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RemoteAdministrato
r v2.2"
 
I want to query a key that has spaces in it, such as:

reg query
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Remote
Administrator v2.2

When i try this, i get: Error: Invalid command-lin parameters.

I have tried using _ and " in place of the spaces. This has not worked.

Any suggestions?

reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Remote
Administrator v2.2"

?
 
Jim said:
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Remote
Administrator v2.2"

?




Thanks for the help. i knew it was something simple, but just couldnt
see it.

Dave
 
Back
Top