by
Prashant
14. May 2010 07:22
The easiest way to find out the processor architecture is to use the Environment class GetEnvironmentVariable method
Console.WriteLine(Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE"));
This will print the processor architecture on the console window i.e. x86 and x64 for 32-bit and 64-bit respectively.
If you enjoyed this post, make sure you subscribe to my RSS feed!