.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

Check OS 64bit or 32bit in C#.net

Posted By: Narayanan     Posted Date: November 29, 2011    Points:5   Category :Windows Application
Hi All,
How to check OS is 64bit or 32bit in C#.net ?Please help me.It is an windows application


Responses
Author: Faizal             
Posted Date: November 30, 2011     Points: 20   

You can use System.Environment to check os version

string osVersion= System.Environment.OSVersion.Platform.ToString();

Hope this helps

Author: Sasi Prabhu             
Posted Date: November 30, 2011     Points: 20   

Try :


public string OsVersionDetails()
{
return System.Environment.OSVersion.Platform.ToString();
}

Thanks & Regards,
Sasi Prabhu.
Author: Narayanan             
Posted Date: December 02, 2011     Points: 20   

Hi,
thanks friends.

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Johny Allen             
Posted Date: July 10, 2013     Points: 20   

I think sasi has given code this is right to check the version?

you can try

public string OsVersionDetails()
{
return System.Environment.OSVersion.Platform.ToString();
}




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend