How to find Windows' System directories from 32 bit EXE running on both 32 and/or 64 bit OS
Posted on 2012-03-22
I have a .NET 3.5 application written in C# which needs to copy files to *BOTH* the windows' system folders. It has some 32 bit DLLs which need to go in the system32 folder and it has 64 bit DLLs which need to go in the 64 bit System folder.
So, basically i need to figure out how to write these methods:
public string Get32BitWindowsSystemFolder()
public string Get64BitWindowsSystemFolder()