2011年3月31日 星期四

OS 的判斷

藉由 C# 本身的 Liberary 就可以讀取執行程式系統的 OS 版本
但是怎麼分辨
在這邊整理了一下
用 System.Environment.OSVersion.Version 讀取的數值
開頭數值為
5.0 : Windows 2000
5.1 : WindowsXP
5.2 : Windows 2003
6.0 : Vista
6.1 : Windows 7

沒有留言:

張貼留言