Jump to content

hoanghapc

New Members
  • Posts

    1
  • Joined

  • Last visited

About hoanghapc

  • Birthday 05/08/1993

Profile Information

  • Location
    Hanoi - Vietnam

hoanghapc's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I have an application compiled in x86 mode (in c#) from which I need to access a certain file that exists in the 64-bit program files folder (of a 64-bit Windows of course). I don't want to just hardcode C:\Program Files as a string in my application because a few target computers may have Windows installed in a different drive, or may be in another languages. The problem I'm encountering is that using Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) returns the x86 flavor instead of the desired directory, unless I compile my program in 64-bit mode. Out of curiosity, what can I do to avoid doing such?
×
×
  • Create New...