Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / March 2008

Tip: Looking for answers? Try searching our database.

WMI & .NET Framework

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jerry West - 15 Mar 2008 20:22 GMT
I just want to make certain I'm clear on something...

I plan on using WMI in my VB.NET 2008 project. To do so I include the
following statement:

imports System.Management

Now, what I want to be clear on is this --if a user has the .NET Framework
installed then my program will be able to use WMI. I don't also need to
insure that they have the WMI scripting library (wbemdisp.tlb) installed
like in VB6?

Thanks!

JW
kimiraikkonen - 15 Mar 2008 20:46 GMT
> I just want to make certain I'm clear on something...
>
[quoted text clipped - 11 lines]
>
> JW

Also it seems System.Management namespace is not present (undefined)
in .NET 2.0 with VB 2005 express. Why?

But there's in MSDN? :
http://msdn2.microsoft.com/en-us/library/system.management(VS.80).aspx
kimiraikkonen - 15 Mar 2008 20:55 GMT
> > I just want to make certain I'm clear on something...
>
[quoted text clipped - 16 lines]
>
> But there's in MSDN? :http://msdn2.microsoft.com/en-us/library/system.management(VS.80).aspx

Replying my own issue:
Referencing system.management DLL made VB 2005 recognize.

So Jerry, if you've done your program with referencing and using
correct library (and seems you did) and if the target framework is
installed and running on target machine, there shouldn't be any
difficulty for your program.

Also, if you still want to check a file's(assembly or library)
existence, use "System.IO.File.Exists" function in your form_load
event to notify user.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.