Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

SMART drive Analysis


  • Please log in to reply
94 replies to this topic

#61 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 20 March 2008 - 03:27 PM

To bring everyone up to date. I made a couple more changes that I hope will get rid of the floppy run problem. The issue here seems to be one of it not behaving the same on all systems. My floppy drive never runs with the script but it never has since the beginning. I made the changes based on what I thought might be causing it and if I'm wrong then I'm stopping right here. I've uploaded the au3 file this time instead of posting it.
Smart_Analysis.zip

I've also updated the online exe file
Smart Drive Analysis

Let me know the results.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"







#62 ptrex

ptrex

    Universalist

  • MVPs
  • 2,420 posts

Posted 20 March 2008 - 03:35 PM

@GEOSoft

Thanks for the persistance on solving the problem.

I can't test it (no floppy drive around).

I hope someone else can give feedback.

regards,

ptrex

#63 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 20 March 2008 - 07:09 PM

The floppy problem has been plaguing many people, isn't there a way to identify it easily like 'FIXED', 'REMOVABLE' and something like that?

That doesn't work. It is already passing just a fixed drive. The problem lies in the WMI and that's what I think I may have ironed out but I'm not sure.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#64 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 20 March 2008 - 07:15 PM

@GEOSoft

Thanks for the persistance on solving the problem.

I can't test it (no floppy drive around).

I hope someone else can give feedback.

regards,

ptrex

No real persistace involved here. If I feel like working on it I do, otherwise it just gets ignored. I have not actually been feeling up to doing much code at all for a while now. For feedback all people should have to do is run the exe file from the server (second link) and they will know whats happening and then hopefully post back here. I can see where most people won't worry about floppy issues because they are quickly becoming a thing of the past unless you want to run an external one. I just don't understand why it doen't behave the same on all systems that have floppies installed.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#65 Emiel Wieldraaijer

Emiel Wieldraaijer

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 711 posts

Posted 21 March 2008 - 10:23 PM

@GEOSoft

There are still much floppy drives available in computers..

and if you want to update the harddisk temperature .. you don't want the sound, the floppy makes when it's accessed ..

Maybe WMI is not the right way to check the harddisk temperature..

Edited by Emiel Wieldraaijer, 21 March 2008 - 10:24 PM.

Best regards,Emiel WieldraaijerPosted Image

#66 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 22 March 2008 - 02:02 AM

@GEOSoft

There are still much floppy drives available in computers..

and if you want to update the harddisk temperature .. you don't want the sound, the floppy makes when it's accessed ..

Maybe WMI is not the right way to check the harddisk temperature..

Lots of possibilities Emiel but I don't see where harddisk temperature would be much affected (if at all) by the fact that the floppy drives quickly checks to see if a disk is inserted and more particularily by the sound it makes.
Have you tried the newest release?
Analyzer

Edited by GEOSoft, 22 March 2008 - 02:03 AM.

GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#67 Emiel Wieldraaijer

Emiel Wieldraaijer

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 711 posts

Posted 24 March 2008 - 02:37 PM

Off course still check the floppy drive
Best regards,Emiel WieldraaijerPosted Image

#68 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 25 March 2008 - 05:08 AM

Off course still check the floppy drive

Thanks Emiel.
I'll take another look when I get a chance.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#69 mdwerne

mdwerne

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 25 August 2008 - 10:37 PM

Hi George,

Very neat script...I've never had a drive fail with a SMART error but the coding alone is very interesting to look through.

One question?

I tried running your app under Vista and it says my drive may not be SMART compatible even though I think it is. Do you have any idea what parts of your script may need to be modified to allow for Vista support?

If this is a stupid question, please ignore.

Thanks,

-Mike

#70 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 26 August 2008 - 03:27 PM

Hi George,

Very neat script...I've never had a drive fail with a SMART error but the coding alone is very interesting to look through.

One question?

I tried running your app under Vista and it says my drive may not be SMART compatible even though I think it is. Do you have any idea what parts of your script may need to be modified to allow for Vista support?

If this is a stupid question, please ignore.

Thanks,

-Mike

I've had drives report the same thing although it is rare. It seems that some drives can be read even when S.M.A.R.T is disabled in BIOS and some can't. As far as I know it does work in Vista but Vista issues belong to someone else. Also the credit for the reporting part of this script goes to ptrex. I just added the GUI and made a couple of mods to his code to solve a couple of problems.
I have an executable version on one of my web sites that the user can run from the server and no one has reported any problems with it although I am sure that others have had the same report as you showed.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#71 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 26 August 2008 - 03:27 PM

Hi George,

Very neat script...I've never had a drive fail with a SMART error but the coding alone is very interesting to look through.

One question?

I tried running your app under Vista and it says my drive may not be SMART compatible even though I think it is. Do you have any idea what parts of your script may need to be modified to allow for Vista support?

If this is a stupid question, please ignore.

Thanks,

-Mike

I've had drives report the same thing although it is rare. It seems that some drives can be read even when S.M.A.R.T is disabled in BIOS and some can't. As far as I know it does work in Vista but Vista issues belong to someone else. Also the credit for the reporting part of this script goes to ptrex. I just added the GUI and made a couple of mods to his code to solve a couple of problems.
I have an executable version on one of my web sites that the user can run from the server and no one has reported any problems with it although I am sure that others have had the same report as you showed.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#72 mdwerne

mdwerne

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 26 August 2008 - 03:43 PM

I've had drives report the same thing although it is rare. It seems that some drives can be read even when S.M.A.R.T is disabled in BIOS and some can't. As far as I know it does work in Vista but Vista issues belong to someone else. Also the credit for the reporting part of this script goes to ptrex. I just added the GUI and made a couple of mods to his code to solve a couple of problems.
I have an executable version on one of my web sites that the user can run from the server and no one has reported any problems with it although I am sure that others have had the same report as you showed.


Thank youy very much for the reply and the pointer to ptrex as the developer.

Since my post I have dug into the script a bit and am trying to understand how it works.

After re-reading the whole post I found that THIS version of the script works just fine on my vista box. So I'm trying to look at the differences, other than the GUI, between the two scripts (the one linked above and the one off your website) to see what I can modify.

Again, thank you for your reply!

-Mike

#73 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 26 August 2008 - 04:12 PM

Thank youy very much for the reply and the pointer to ptrex as the developer.

Since my post I have dug into the script a bit and am trying to understand how it works.

After re-reading the whole post I found that THIS version of the script works just fine on my vista box. So I'm trying to look at the differences, other than the GUI, between the two scripts (the one linked above and the one off your website) to see what I can modify.

Again, thank you for your reply!

-Mike

Let me know if you find anything and I will revisit the script. Also I'm bad for not mentioning the large part that Chris played in the script.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#74 mdwerne

mdwerne

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 10 September 2008 - 10:14 PM

Let me know if you find anything and I will revisit the script. Also I'm bad for not mentioning the large part that Chris played in the script.

AH HA!!!!

Ok, after poking at "your" script, I understand that others had a huge part in it. I found the following line (418).
If $objItem.MediaType <> "Fixed hard disk media" then Return -1


I bet you can already see the issue...for some reason Vista does not like the space between "Fixed and hard".

I removed the space:

If $objItem.MediaType <> "Fixed hard disk media" then Return -1

and what the heck do you know...the app now works in Vista as well.

Have a great day!

-Mike (The master space finder) :)

#75 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 11 September 2008 - 06:17 PM

AH HA!!!!

Ok, after poking at "your" script, I understand that others had a huge part in it. I found the following line (418).

If $objItem.MediaType <> "Fixed hard disk media" then Return -1


I bet you can already see the issue...for some reason Vista does not like the space between "Fixed and hard".

I removed the space:

If $objItem.MediaType <> "Fixed hard disk media" then Return -1

and what the heck do you know...the app now works in Vista as well.

Have a great day!

-Mike (The master space finder) :)

Thanks Mike. I can fix that a different way and I'll try to get to it later today. And you are correct It was not my script. I just made a few changes and added the GUI.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#76 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 12 September 2008 - 09:23 AM

@mdwerne

Hi Mike. On checking into this, that line does not even appear in my file so I don't know what file you are refering to. Regardless of that here is a better fix that will make it compatable with all versions

; If NOT StringRegExpr($objItem.MediaType, "(?i)Fixed\s+hard\s+disk\s+media") Then Return -1 ;

GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#77 KaFu

KaFu

    Hey, it's just me, KhaFoo...

  • MVPs
  • 3,409 posts

Posted 12 September 2008 - 10:58 AM

Hi GEOSoft,

Hi Mike. On checking into this, that line does not even appear in my file so I don't know what file you are refering to. Regardless of that here is a better fix that will make it compatable with all versions

; If NOT StringRegExpr($objItem.MediaType, "(?i)Fixed\s+hard\s+disk\s+media") Then Return -1 ;

It does appear in the source of the file in the post:
http://www.autoitscript.com/forum/index.ph...st&p=494609

Replaced it with above mention SRE and it works fine for me.

Best Regards

#78 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 12 September 2008 - 12:07 PM

Hi GEOSoft,



It does appear in the source of the file in the post:
http://www.autoitscript.com/forum/index.ph...st&p=494609

Replaced it with above mention SRE and it works fine for me.

Best Regards

I don't kno why my first text search failed because now I have located it at Line 464 on the latest version. I think I'll go through that file soon and do some more checking and probably replace some more with RegExps. In most cases those results used in the code would have been copied from the clipboard because that is quite often part of my test routine. ClipPut(ClipGet() & @CRLF &$objItem.MediaType)
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#79 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 12 September 2008 - 05:22 PM

The fix has been completed and the new zip file uploaded to my site.

Source and compiled version

No way of proving it but that fix may also have solved the floppy issue. It does solve a situation where some drives reported as possibly not SMART capable when I in fact knew they were.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#80 KaFu

KaFu

    Hey, it's just me, KhaFoo...

  • MVPs
  • 3,409 posts

Posted 12 September 2008 - 06:35 PM

Tried to compile the source:
WARNING: $Col_w1: possibly used before declaration.ƒo݊÷ Ù©ÝjÛazÚ)¶«z+ºÚ"µÍ‘[˜ÈÐÛÛ


without content and EndFunc. Guess you deleted some code by accident :).

Best Regards




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users