Click to See Complete Forum and Search --> : Program Files Folder


Gek
August 23rd, 2001, 04:29 AM
Hi there

How can I get the path of the program files folder? There are API functions for retrieving the windows path and the windowssystem path, but I didn't find anything on the program files path. Problem is the path is language dependent, so I can't just say it's always "program files".

thanks for your help
daniel

berta
August 23rd, 2001, 07:48 AM
I think U must read it in registry in HKEY_LOCAL_MACHINE root. U can find the correct code in yuor Visual studio 6.0 installation folder. Find for "C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1" and open the project. Look at frmPath and basSetup1 (function ResolveDestDir). It's to complicate to write code in mail... "more simple" read it...

hi, brt