Results 1 to 4 of 4

Thread: Finding Program Files folder???

  1. #1
    Guest
    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



  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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!

  3. #3
    Guest

    Question

    What is the "ProgramFilesPath" for???

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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
  •  



Click Here to Expand Forum to Full Width