Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH Read Registry - How to read keys with \ in them
Message
From
02/12/2003 14:57:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
WSH Read Registry - How to read keys with \ in them
Miscellaneous
Thread ID:
00855157
Message ID:
00855157
Views:
65
Hi,

I'm looking for a way to read the registry value of the "\\MTFSPDC01\PDF Printer" SubKey that is located in the HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices Key.


I'm using the following code but is hooks as it is unable to see that "\\MTFSPDC01\PDF Printer" is a key in itself - I guess it tries to look for the PDF Printer SubKey of the MTFSPDC01 Key.
oShell = CreateObject("WScript.Shell")
? oShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices\\\MTFSPDC02\PDF Printer")
So, how does one goes to key the value of a subkey containing Backslash

TIA,

Yanick
Next
Reply
Map
View

Click here to load this message in the networking platform