How to get Windows Version - as in “Windows 10, version 1607”?

后端 未结 4 1049
既然无缘
既然无缘 2020-12-14 07:41

It seems that the word \"version\" in reference to Windows is used for different things. For example, the Windows 10 \"Anniversary Update\" is labeled \"Version 1607\" by Mi

4条回答
  •  没有蜡笔的小新
    2020-12-14 08:12

    string Version = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion", "ProductName", null);
    

    Gives a name like "Windows 10 Enterprise".

提交回复
热议问题