Hi!
Im sort of a newbie on VB. (Not a Newbie-Newbie) :)
How do i find out the name of the program files folder?
Ex.
Here in Sweden the folder is named "Program" and in the US-version its named "Program Files"
Help!
/// Ola Svensson
Printable View
Hi!
Im sort of a newbie on VB. (Not a Newbie-Newbie) :)
How do i find out the name of the program files folder?
Ex.
Here in Sweden the folder is named "Program" and in the US-version its named "Program Files"
Help!
/// Ola Svensson
The path to the Program Files directory is located in the registry. If you don't know how to read from the registry read John's excellent article about it.
The location in the registry is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir
Good luck!
What is the "ProgramFilesPath" for???
It's the same thing! But (at least on my NT machine) the ProgramFilesPath is %SystemDrive%\Program Files and the ProgramFilesDir is C:\Program Files.
So if you use ProgramFilesDir you don't have to look up the %SystemDrive% variable.