출처 : http://support.microsoft.com/kb/304283
Windows 7은 찍어보니깐 6 나온다 .
//Platform is Windows NT 3.51, Windows NT 4.0, Windows 2000, or Windows XP. case System.PlatformID.Win32NT: switch(osInfo.Version.Major) { case 3: Console.WriteLine("Windows NT 3.51"); break; case 4: Console.WriteLine("Windows NT 4.0"); break; case 5: if (osInfo.Version.Minor==0) Console.WriteLine("Windows 2000"); else Console.WriteLine("Windows XP"); break; }break;
'C#.NET' 카테고리의 다른 글
[ dynamic , ExpandoObject ] C# Class Properties 추가하기 (0) | 2012.01.02 |
---|---|
[ReportViewer,리포트뷰어] 한페이지에 하나씩보여주기 (0) | 2011.10.11 |
[wic_x86_enu.exe] Microsoft .NET Framework 4 xp설치문제 (0) | 2011.08.17 |
c# 특수문제 제거 정규식 (0) | 2011.07.28 |
[배포/ ClickOnce / MIME ].application / .manifest mimetype (0) | 2011.02.25 |
[ enum 권한설정 ]Enum values as bit flags (0) | 2010.12.21 |
[Stopwatch] 프로그램 실행시간 체크 (1) | 2010.12.08 |
[StartupPath / BaseDirectory ]프로그램 실행위치 (0) | 2010.11.23 |
C#.NET 에서 간단한 저장프로시저 사용법 (0) | 2010.11.01 |
[Stopwatch]프로그램실행 시간체크 (0) | 2010.10.15 |