How to

determine 32/64-bit system

Published: 16. January 2009 | Updated: 31. October 2011
License: Microsoft Public License (MS-PL)
Categories: Windows
Tags: C# Windows
Was this snippet helpful for you? YESYES / NONO
Console.WriteLine("You are running on {0}-bit system", IntPtr.Size * 8);

// or

bool is64bit = Environment.Is64BitOperatingSystem;
Console Output:
You are running on 32-bit system
Send us feedback about this snippet »



Related Snippets: