Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH Read Registry - How to read keys with \ in them
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00855157
Message ID:
00855390
Vues:
20
>>>Just a WAG, try to double "\".
>>
>>Sergey,
>>
>>Tried all combinations that I could think of (including that one). No go.
>
>George,
>
>Looks like WSH cannot read/write such keys. See PRB: Unable to Use a "\" in the Key Name with the RegWrite Method of Windows Script Host and http://dbforums.com/arch/196/2002/7/429739 for workarounds.

Sergey,

Thanks for the link. Still, I don't remain convinced that it's a problem with the WSH. The principal reason being that it's simply a COM wrapper for the necessary API calls. Further, since the OS must write and read this particular key (it's the network printer port), the API calls themselves must be able to accomplish this.

My gut reaction is that it's a question of the proper format for the key. The closest analogy I can think of at the moment is long file names with spaces.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform