I write a WinForms app,in local network how can understand that current pc's OS is server Windows or not? thanks.
Asked
Active
Viewed 205 times
1
-
A related question and good answer: http://stackoverflow.com/questions/37700605/getting-windows-os-version-programmatically – robert4 Jul 01 '16 at 09:14
2 Answers
3
there are specific versions of windows: Operating system versions
and have a look here: OperatingSystem.Platform Property
Davide Piras
- 43,118
- 10
- 90
- 143
1
You should use System.OperatingSystem osInfo = System.Environment.OSVersion;. To understand what the version numbers mean, you can take a look at this KB article.
madd0
- 8,795
- 2
- 37
- 60