View Single Post
Old 08-16-2008   #3 (permalink)
Fred


 
 

Re: Retrieve Windows System Information.

Dans : news:eIBKCR1$IHA.524@xxxxxx,
engteng écrivait :
Quote:

> How can I retrieve Windows System Information ? example :
> System Name, System Model, Processor, Total Physical Memory and etc.
I use WMI for this (System.Management Namespace)
Example in vb.NET for the processors

Dim win32_Processor As New ManagementClass( _
New ManagementPath("Win32_Processor"))
Dim properties As PropertyDataCollection = win32_Processor.Properties
For Each instance As ManagementObject In win32_Processor.GetInstances
Console.WriteLine(
instance.Properties("ProcessorId").Value.ToString)
Console.WriteLine(instance.Properties("Name").Value.ToString)
Next

Have a look here
http://msdn.microsoft.com/en-us/libr...82(VS.85).aspx


--
Fred
foleide@xxxxxx

My System SpecsSystem Spec