![]() |
|
|||||||
| Articles of Interest Members posting articles of interest others should read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I just came across this WMI Code Creator tool released by Microsoft 2005. First test quickly generated useful code for me. The generated code is version .Net 1.1, but useful in .Net 2.0 too because System.Management namespace wasn't changed much. Current download link.
Quote:
Most useful link: Windows Management Instrumentation reference at MSDN. (you can also click to get relevant class docs from within WMI Code Creator application)
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ DR. WEIR: Download it to a non-networked, firewalled computer. TECHNICIAN: Yes, ma'am. |
|
||||
|
holy crap, i downloaded it and noticed that there's a really large .cs file, i think it's the VS2003 C# source file for that program.. which means we can customize it as needed
![]() thanx big time JohnH
__________________
There are 3 kinds of people in the world: Those who can count and those who can't.
Windows has a 64 bit GUI for a set of 32 bit extensions on a 16 bit shell for an 8 bit OS using a 4 bit kernel made by a 2 bit company that can't stand 1 bit of competition. For an extensive list of MS Service packs and extensions: http://www.juggalobrotha.com/ |
|
||||
|
Did you know you can easily generate strongly typed classes for all WMI classes? There is a .Net tool called "Mgmtclassgen.exe" that does this, it can also be done with this short code:
Code:
Public Shared Sub GenerateWMIClass(ByVal name As String)
Dim m As New Management.ManagementClass(name)
m.GetStronglyTypedClassCode(Management.CodeLanguage.VB, name & ".vb", "Win32")
m.Dispose()
End Sub
Code:
GenerateWMIClass("Win32_Printer")
Code:
For Each p As Win32.Printer In Win32.Printer.GetInstances
p.PrintTestPage()
Next
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ DR. WEIR: Download it to a non-networked, firewalled computer. TECHNICIAN: Yes, ma'am. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|