Get our OS is 64 bit or not using C#

Total Post:119

Points:835
C# 
C#
 1496  View(s)
Ratings:
Rate this:

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

  1. Post:101

    Points:709
    Re: Get our OS is 64 bit or not using C#

    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();
            }
        }

      Modified On Mar-31-2018 06:45:43 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!