473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to read S.M.A.R.T. attributes in vb ?

Ive been browsing the WINAPI descriptions, but can't seem to find where the
S.M.A.R.T attributes can be read.
I'm trying to read the current Temperature from a S.M.A.R.T. enabled HDD,
and i would like to do this in VB.NET.

Mar 27 '06 #1
5 3122
I thought it should be possible using WMI but it seems that not:

DOC: WMI: Win32_TemperatureProbe.CurrentReading Is Not Populated
http://support.microsoft.com/kb/306852/en-us
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"@rpus - Development" <rp*************@discussions.microsoft.com> escribió
en el mensaje news:FC**********************************@microsof t.com...
Ive been browsing the WINAPI descriptions, but can't seem to find where
the
S.M.A.R.T attributes can be read.
I'm trying to read the current Temperature from a S.M.A.R.T. enabled HDD,
and i would like to do this in VB.NET.

Mar 27 '06 #2
Ya,- i know, I tryed that one :( , - but still, it must be possible ?

"Carlos J. Quintero [VB MVP]" wrote:
I thought it should be possible using WMI but it seems that not:

DOC: WMI: Win32_TemperatureProbe.CurrentReading Is Not Populated
http://support.microsoft.com/kb/306852/en-us
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"@rpus - Development" <rp*************@discussions.microsoft.com> escribió
en el mensaje news:FC**********************************@microsof t.com...
Ive been browsing the WINAPI descriptions, but can't seem to find where
the
S.M.A.R.T attributes can be read.
I'm trying to read the current Temperature from a S.M.A.R.T. enabled HDD,
and i would like to do this in VB.NET.


Mar 27 '06 #3
Hi,
There was an article about it in VSJ last year I think. I'm pretty sure
that article will be on the web somewhere, though your guess is as good as
mine. What I do recall was that the author implied it was a very imprecise
science and that he only got meaningful information through a process of
trial and error. It's not the smartest thing in the world to use, pardon
the pun ;-)

Cheers,
Alex Clark
"@rpus - Development" <rp*************@discussions.microsoft.com> wrote in
message news:DE**********************************@microsof t.com...
Ya,- i know, I tryed that one :( , - but still, it must be possible ?

"Carlos J. Quintero [VB MVP]" wrote:
I thought it should be possible using WMI but it seems that not:

DOC: WMI: Win32_TemperatureProbe.CurrentReading Is Not Populated
http://support.microsoft.com/kb/306852/en-us
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"@rpus - Development" <rp*************@discussions.microsoft.com>
escribió
en el mensaje news:FC**********************************@microsof t.com...
> Ive been browsing the WINAPI descriptions, but can't seem to find where
> the
> S.M.A.R.T attributes can be read.
> I'm trying to read the current Temperature from a S.M.A.R.T. enabled
> HDD,
> and i would like to do this in VB.NET.
>


Mar 27 '06 #4
Ive found an "Old Visual Basic" example on the web, - its seem to base itself
on reading a portion of memory, and then parse it out, However I have not
been successfull in getting the code to run under vb2005.

So I guess i'll keep up the hunt ..........

"Alex Clark" wrote:
Hi,
There was an article about it in VSJ last year I think. I'm pretty sure
that article will be on the web somewhere, though your guess is as good as
mine. What I do recall was that the author implied it was a very imprecise
science and that he only got meaningful information through a process of
trial and error. It's not the smartest thing in the world to use, pardon
the pun ;-)

Cheers,
Alex Clark
"@rpus - Development" <rp*************@discussions.microsoft.com> wrote in
message news:DE**********************************@microsof t.com...
Ya,- i know, I tryed that one :( , - but still, it must be possible ?

"Carlos J. Quintero [VB MVP]" wrote:
I thought it should be possible using WMI but it seems that not:

DOC: WMI: Win32_TemperatureProbe.CurrentReading Is Not Populated
http://support.microsoft.com/kb/306852/en-us
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"@rpus - Development" <rp*************@discussions.microsoft.com>
escribió
en el mensaje news:FC**********************************@microsof t.com...
> Ive been browsing the WINAPI descriptions, but can't seem to find where
> the
> S.M.A.R.T attributes can be read.
> I'm trying to read the current Temperature from a S.M.A.R.T. enabled
> HDD,
> and i would like to do this in VB.NET.
>


Mar 28 '06 #5
if you are able to post or link to the old code, maybe we can get it to work?

Jun 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Gavin | last post by:
Hi, I'm a newbie to programming of any kind. I have posted this to other groups in a hope to get a response from anyone. Can any one tell me how to make my VB program read the Bios serial number...
2
by: Martin Huber | last post by:
Hello Newsgroup, I want to make a javascript application, that reads out the directorys on my hard disk and show in a checkbox if a folder is read- or writeable. So I can change attributes on an...
1
by: Chua Wen Ching | last post by:
Hi there, I have some problems when reading XML file. 1. First this, is what i did, cause i can't seem to read "sub elements or tags" values, so i place those values into attributes like this....
6
by: Samuel M. Smith | last post by:
I have been playing around with a subclass of dict wrt a recipe for setting dict items using attribute syntax. The dict class has some read only attributes that generate an exception if I try to...
1
by: Phil Haddock | last post by:
Can anyone post a code snippet on how to retrieve Permission information on a Folder? (Visual Basic 2005) There's lot's of information on how to set a permission, but I can't figure out how to...
4
by: ChillyRoll | last post by:
Hello guys, I am looking for a parser in PHP that can return all the attributes of XML entities. I know how to read the XML Entities, but I have got a problem with reading attributes. So I will...
6
by: | last post by:
Hi, I'm steel trying to read and update my XML file with Visual Basic Express but i am unable to find the right way to read my xml file and update it if neccessary... Here is my problem :...
0
by: Kavitha Sudhershan | last post by:
hi, i wanna read the node values from xml. As per my code i can read the node values in first child node and for the next node am not able to read the node values. pls help me. i'll paste the code...
1
by: jmDesktop | last post by:
I know I can use FileAttributes.Normal but it doesn't always work. I am using the FileSystemWatcher class. I have found that if I uncheck the read-only flag from the directory and apply to all...
1
by: TomGo | last post by:
Hi All I want to read out the properties of a field by the instance, which is referenced by the corresponding field. I want to read out the attributes. In a class I wrote the following: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.