我需要得到OsArchitecture指的O/s位獲得操作系統的細節,我使用Win32_OperatingSystem但其「OsArchitecture」未對所有類型的操作系統如何在C#代碼
ManagementObjectSearcher objOSDetails = new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem");
ManagementObjectCollection osDetailsCollection = objOSDetails.Get();
foreach(ManagementObject mo in osDetailsCollection)
{
String _operatingSysBits = mo["OSArchitecture"].ToString();
}
的可能重複[如何檢測的Windows 64位平臺和.NET?](http://stackoverflow.com/questions/336633/how-to-detect-windows-64-bit-platform-with-net) – Powerlord 2010-08-25 17:46:10