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?
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?
Source: https://ru.stackoverflow.com/questions/664024/
All Articles