system info in vb.net 
Author Message
 system info in vb.net

Hi,

Is it possible to get cpu temperature using vb.net? If so anyone have a code
sample I can look at?

Thanks in advace.

Eddie



Tue, 13 Dec 2005 00:06:11 GMT  
 system info in vb.net
Hello,


Quote:
> Is it possible to get cpu temperature using vb.net? If so anyone have
> a code sample I can look at?

WMI: VB6 sample (must be converted to VB .NET):

http://www.mvps.org/vbnet/index.html?code/wmi/wmitemperatureprobe.htm

Notice that most Hardware doesn't support this.

Regards,
Herfried K. Wagner
--
MVP VB Classic, VB .NET
http://www.mvps.org/dotnet



Tue, 13 Dec 2005 00:36:56 GMT  
 system info in vb.net
Eddie,

        Add a reference to system.management.  Alot of hardware doesnt
support this.

Sub GetTemps()

Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_TemperatureProbe")

moReturn = moSearch.Get

For Each mo In moReturn

Debug.WriteLine(mo("Name"))

Debug.Indent()

Debug.WriteLine(mo("CurrentReading"))

Debug.Unindent()

Next

End Sub

Ken

---------------------------


Quote:
> Hi,

> Is it possible to get cpu temperature using vb.net? If so anyone have a
code
> sample I can look at?

> Thanks in advace.

> Eddie



Tue, 13 Dec 2005 02:12:10 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. how to use the system.net.sockets and system.net in VB.net

2. System.NET, System.Net.Sockets -> TCPListener Issue

3. System.NET, System.Net.Sockets -> TCPListener Issue

4. VB.NET system.net.sockets question

5. How can I get System Manufacturer Info from WinAPI and VB

6. VB System Info SDK registration? /Snowy Mountain Software

7. Get system performance info in VB?

8. With VB.NET read header info from FoxPro DBF files

9. dhcp Info in vb.net

10. how to get hardware info in vb.net?

11. Free .NET Tests, .NET Info, and Sample code

12. Looking for ANY info on WMI and VB.NET

 

 
Powered by phpBB® Forum Software