Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program Files folder - How to get the name?
Message
 
To
13/09/2002 10:24:37
Arlei Silva
Chevron Oronite Brasil Ltda.
Capuava, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00700175
Message ID:
00700200
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform