RegRead with spaces in keypath
Posted on 2010-09-16
I am using RegRead in order to read a value from the registry from a VBScript. The problem is that the keypath that I am using has a key named VB and VBA Program Settings in it, obviously having spaces in it. I keep getting the error "Invalid root in registry key". I tried my script with a keypath that did not have a space in any of the names and it worked successfully. I have tried using literal quotes by putting """keypath""" but that still produces the same error.
Any ideas on how I can get this to work?