判断当前操作系统

 

//利用C#判断当前操作系统是否为Win8及以上系统

public static bool IsWindows8()

{

  Version currentVersion = Environment.OSVersion.Version;

  Version compareToVersion = new Version("6.2");

  if (currentVersion.CompareTo(compareToVersion) >= 0)

    return true;

  else

    return false;

}

相关文章:

  • 2021-12-16
  • 2021-08-11
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2021-08-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
相关资源
相似解决方案