Checking That the OS is 32bit or 64bit.

Gopesh9
Posted by Gopesh9 under ASP.NET category on | Points: 40 | Views : 1131
private void GetOSSize()
{
string osSize;
if (Environment.Is64BitOperatingSystem == true )
{
osSize= "64 Bit";
}
else
{
osSize= "32 Bit";
}
Console.WriteLine("OS is {0}", osSize);
}

Comments or Responses

Posted by: Srilu.Nayini577 on: 8/17/2012 Level:Starter | Status: [Member] | Points: 10
It works good.

Login to post response