C
codejunkie
I am porting my current project to a 64 bit machine and I am having
some issues with folder paths that vary between a 64 and 32 machine for
any 32 bit application.
The below calls return c:\program files in a 32 bit machine and 64 bit
machine. But i am looking for c:\program files X86 folder in the 64 bit
machine.
How can i implement this in the least number of steps. Can I modify the
below call to specify that i am looking for the 32 bit path?
Thanks in advance.
string commonFiles =
Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles);
string programfiles =
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
some issues with folder paths that vary between a 64 and 32 machine for
any 32 bit application.
The below calls return c:\program files in a 32 bit machine and 64 bit
machine. But i am looking for c:\program files X86 folder in the 64 bit
machine.
How can i implement this in the least number of steps. Can I modify the
below call to specify that i am looking for the 32 bit path?
Thanks in advance.
string commonFiles =
Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles);
string programfiles =
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);