Get the program folder
-
-
I don't know if there's an actual API call on this or not, but you can always pluck this out of the registry. It's always in the same place on any version of Windows: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir -OBRon
-
Do you mean the program files folder? or the folder that your program is running from? Tom Wright tawright915@yahoo.com
-
Do you mean the program files folder? or the folder that your program is running from? Tom Wright tawright915@yahoo.com
-
Have you tried looking at the SHGetFolderPath(), SHGetFolderLocation(), SH* functions?
-
The problem is that the program files folder can be on several drives. I have MS office installed on my D drive and the installer created a program files folder by default. You'd have to search all fixed drives to make sure that it does not exists on any of them. Tom Wright tawright915@yahoo.com
-
GetModuleFileName()
[
](http://www.canucks.com)"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!