Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program Files folder - How to get the name?
Message
 
À
13/09/2002 10:24:37
Arlei Silva
Chevron Oronite Brasil Ltda.
Capuava, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00700175
Message ID:
00700200
Vues:
14
>Hi all,
>
>How I can check the name of the "Program Files" folder?
>My app will run in multi language environments and I need to know the name of this folder to perform some tasks.
>
>I know that if I need the "Windows" folder, I can use the GetWindowsDirectory API function and I can use the GetSystemDirectory API function to get the "System" folder, but what about the "Program Files" folder?
>
>Thank you in advance,
>
Arlei,

You can use the Windows Script Host's Shell object
oShell = CREATEOBJECT("WScript.Shell")
? oShell.SpecialFolders("Programs")
For more information you can check out the series of articles on the WSH that Ed Rauh and I wrote. They appeared beginning in September of 2000 and are available on-line in the VFUG newsletters (www.vfug.org).
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