Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Amending REG_DWORD entries in Registry
Message
De
14/05/2003 08:48:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00788073
Message ID:
00788130
Vues:
23
Chris

Thanks for that, is there a way of writing an entry?

Kev

>Hope this helps...
>
>
>WSHShell = CREATEOBJECT("WScript.Shell")
>ON ERROR DO errNoReg WITH -1 && registry key does not exist
>lcRegDataPath = WSHShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\mycompany\myproduct\datapath")
>IF UPPER(lcRegDataPath) = "HKEY_LOCAL_MACHINE\SOFTWARE\MYCOMPANY\MYPRODUCT\DATAPATH" THEN
>DO errNoReg WITH -2 && registry key exists but is not set
>ENDIF
>strPath = ADDBS(UPPER(lcRegDataPath))
>ON ERROR && return to visual foxpro error handling
>RELEASE WSHShell && release windows scripting object from memory
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform