Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 10th, 2005, 11:04 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #2 (permalink)  
Old May 11th, 2005, 10:35 PM
Authorized User
 
Join Date: Jul 2003
Location: , , Thailand.
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default

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

Reply With Quote
  #3 (permalink)  
Old May 18th, 2005, 03:50 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about WMI in C#!!! puppyonline C# 2005 0 March 22nd, 2006 11:42 PM
WMI Classes madda C# 2005 0 January 17th, 2006 06:45 AM
WMI Houghts VB.NET 2002/2003 Basics 2 May 10th, 2005 03:39 PM
Consuming WMI Events skin C# 1 November 22nd, 2004 06:55 PM
port info for WMI sudha1234 .NET Web Services 0 November 17th, 2004 09:09 AM



All times are GMT -4. The time now is 04:05 AM.


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