CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2001
    Posts
    19

    Program Files Folder

    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


  2. #2

    Re: Program Files Folder

    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


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

Featured