none
C#如何检测当前系统是什么系统 RRS feed

答案

  • OperatingSystem OSv = System.Environment.OSVersion;
    MessageBox.Show(
    "版本 : " + OSv.ToString());

    ps

    Windows NT 6.1 = WIN7
    Windows NT 6.0 = WINVISTA
    Windows NT 5.1 = WINXP
    Windows 4.9 = WINME
    Windows NT 5.0 = WIN2K
    Windows 4.1 = WIN98SE
    Windows 4.01998 = WIN98
    Windows 4.0 = WIN95
    Windows 3.1 = WIN3.1
    Windows 3.0 = WIN3.0
    Windows 2.0 = WIN2.0
    Windows 1.0 = WIN1.0


    family as water

    2012年8月10日 6:08

全部回复