>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