Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH Read Registry - How to read keys with \ in them
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
WSH Read Registry - How to read keys with \ in them
Divers
Thread ID:
00855157
Message ID:
00855157
Vues:
64
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform