Advertise with us

Get our OS is 64 bit or not using C#

I want to get our system is 64 bit or not can anybody provide me that’s code, please.

Last updated:10/8/2013 1:11:11 AM

1 Answers

Pravesh Singh
Pravesh Singh

class Program
    {
        static void Main(string[] args)
        {
           if (Environment.Is64BitOperatingSystem)
                Console.Write("Your OS is 64 bit");
            else
                Console.Write("Your OS isn't 64 bit");
            Console.ReadKey();
        }
    }

Answer