Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to read 'Hide File Extensions' using API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00695705
Message ID:
00695718
Vues:
10
Thanks, Sergey. Maybe you could help me further: I am getting an error -106 : "data type for value is not a data string".

I see in the registry the HideFileExt type is REG_DWORD.

My code is:

SET proc to HOME()+"samples\classes\registry.prg"
o=CREATEOBJECT("registry")
? TRANSFORM(o.getregkey("HideFileExt", @cValue, "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", HKEY_CURRENT_USER)

Any suggestions?

Thank you.




>You can try to read the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt.
>
>>Does anyone know how to programatically read the "Hide File Extension" option of Windows Explorer using a Windows API? I've been searching with no luck so far.
>>
>>I handle tech support calls fairly often that deal with a bug in Word 97 automation having to do with this setting, and I would like to programmatically check for this setting on app startup.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform