系统信息来自vb.net ???????????????????????????? [英] System information via vb.net???????????????????????????????

查看:67
本文介绍了系统信息来自vb.net ????????????????????????????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过vb.net获取系统信息?至少,我需要

开始|所有程序|附件|系统中提供的数据

工具|系统信息,最好是Office应用程序

subheader。


提前致谢,


John

How can I get the System Information via vb.net? At a minimum, I need
that data supplied in Start|All Programs|Accessories|System
Tools|System Information and, preferably the Office Applications
subheader.

Thanks in advance,

John

推荐答案

可以使用WMI收集很多系统信息,搜索system.management命名空间或WM

Alot of the system information can be collected by using WMI, make a search for the system.management namespace or WM

GW


你能用更简单的术语解释一下,也许是一个代码片段?我是

几乎是新手。


谢谢,

John
Can you explain that in simpler term, perhaps a code snippet? I''m
pretty much of a newbie.

Thanks,
John


嗨约翰,


下面的代码将为您提供如此多的系统信息,它将敲响你的

袜子:

Dim s As String = _


Registry.LocalMachine.OpenSubKey(_


" SOFTWARE" _


).OpenSubKey(_


" Microsoft" _


).OpenSubKey(_


共享工具_


).OpenSubKey(_


" MSINFO" _ < br $>

)。获得价值(_


" Path",_


"" _





如果File.Exists(s)那么


Process.Start( s)


结束如果


HTH,


Bernie Yaeger


" John T. Howard" <乔************* @ comcast.net>在留言中写道

新闻:1t ******************************** @ 4ax.com ...
Hi John,

Below code will give you so much system information that it will knock your
socks off:
Dim s As String = _

Registry.LocalMachine.OpenSubKey( _

"SOFTWARE" _

).OpenSubKey( _

"Microsoft" _

).OpenSubKey( _

"Shared Tools" _

).OpenSubKey( _

"MSINFO" _

).GetValue( _

"Path", _

"" _

)

If File.Exists(s) Then

Process.Start(s)

End If

HTH,

Bernie Yaeger

"John T. Howard" <jo*************@comcast.net> wrote in message
news:1t********************************@4ax.com...
如何通过vb.net获取系统信息?至少,我需要在开始|所有程序|附件|系统工具|系统信息中提供的数据,最好是Office应用程序
子标题。

提前致谢,

John
How can I get the System Information via vb.net? At a minimum, I need
that data supplied in Start|All Programs|Accessories|System
Tools|System Information and, preferably the Office Applications
subheader.

Thanks in advance,

John



这篇关于系统信息来自vb.net ????????????????????????????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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