|
-
Sep 12th, 2000, 03:47 AM
#1
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
-
Sep 12th, 2000, 05:18 AM
#2
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!
-
Sep 12th, 2000, 05:36 AM
#3
What is the "ProgramFilesPath" for???
-
Sep 12th, 2000, 05:58 AM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|