string ProgramFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); 

This code on 64-bit Windows gives the path to "C: \ Program Files (x86)", and how to get the path to the ProgramFiles folder?

  • one
    On the non-x86 system, passing the program for the non-x86 system. - judging by this description, the code does not run on 64-bit Windows - Grundy
  • 2
    The documentation says that on a 64-bit system it should return the "Program Files". Is everything ok in the project settings? - arrowd
  • 2
    Yes, removed the tick, preferably 32 everything worked ATP. - polsok

0