p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB How-To (http://p2p.wrox.com/forumdisplay.php?f=78)
-   -   WMI (http://p2p.wrox.com/showthread.php?t=29149)

Houghts May 10th, 2005 11:04 AM

WMI
 
Hi

I am new to vb.net. I am trying to access wmi to check hardware on computers. How do I associate WMI into vb.net.

Thanks Dave

soccers_guy10 May 11th, 2005 10:35 PM

Try to look for "ManagementObject Class" in MSDN. This require "System.Management" NameSpace.


Raghavendra_Mudugal May 18th, 2005 03:50 AM

Make a Reference to System.Management Namespace

Dim sd As New ManagementObject("win32_logicaldisk.deviceid=""c:" "")
sd.Get()
MessageBox.Show(sd("Size").ToString())

Hope this helps.

With Regards,
Raghavendra Mudugal


All times are GMT -4. The time now is 10:43 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.