Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help using RegRead on a key containing backslashes 1

Status
Not open for further replies.

DrewFin

IS-IT--Management
Apr 12, 2002
2
US
I'm using RegRead to try to get the data from a value that contains backslash characters, as below:

NavVer = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\DLLUsage\VP6\C:\Program Files\NavNT\rtvscan.exe")

where C:\Program Files\NavNT\rtvscan.exe is a single value I'm trying to get data from

I assumed double or triple backslashes would work, as in

NavVer = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\DLLUsage\VP6\C:\\Program Files\\NavNT\\rtvscan.exe")

But it doesn't and I haven't found any help from my referance material. I'm reasonably certain my syntax is otherwise correct. Any ideas?
 
AFAIK, WSH cannot do this. The backslashes have significant meaning to the registry access methods. You'll need to use something else to read the registry.
Or you could export the VP6 key to a text file, then parse that file for what you want. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top