用于检测操作系统的代码 [英] A code for detecting the operating system

查看:147
本文介绍了用于检测操作系统的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想知道您是否可以帮助我..
我需要从form_load运行的代码,该代码可以自动检测计算机已安装的操作系统(包括Service Pack,如果有的话),并在标签中显示结果..
谢谢:)

Hi, I''m wondering if you can help me..
I need a code run from form_load which automatically detects the operating system the computer has installed, including the service pack if there is any, and displays the result in a label..
Thanks :)

推荐答案

如果遇到可以帮助您的链接,我遇到了很多问题-
http://support.microsoft.com/kb/304283 [ http://www.jamesgoodfellow.com/blog/post/Accurately-Detect-Operating-System-Version-In-C.aspx [ http://www.csharp411.com/determine-windows-version-and-edition -with-c/ [ ^ ]
I came across a number if links that could help you out -
http://support.microsoft.com/kb/304283[^]
http://www.jamesgoodfellow.com/blog/post/Accurately-Detect-Operating-System-Version-In-C.aspx[^]
http://www.csharp411.com/determine-windows-version-and-edition-with-c/[^]



谢谢,Abhinav,我将保存两个链接..到目前为止,Prera​​k的第一个链接对我来说效果很好,所以我将其保留为现在,以避免混淆自己哈哈:-)
Ahh ok thanks Abhinav, I will save both links.. So far the first link from Prerak has worked for me quite well so I''ll keep it as that for now to avoid confusing myself haha :-)


这篇关于用于检测操作系统的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆