Sign in to follow this  
Followers 0

SMART drive Analysis

95 posts in this topic

#61 ·  Posted

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!"

Share this post


Link to post
Share on other sites



#63 ·  Posted

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!"

Share this post


Link to post
Share on other sites

#64 ·  Posted

@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!"

Share this post


Link to post
Share on other sites

#65 ·  Posted (edited)

@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

Best regards,Emiel Wieldraaijer

Share this post


Link to post
Share on other sites

#66 ·  Posted (edited)

@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

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!"

Share this post


Link to post
Share on other sites

#67 ·  Posted

Off course still check the floppy drive


Best regards,Emiel Wieldraaijer

Share this post


Link to post
Share on other sites

#68 ·  Posted

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!"

Share this post


Link to post
Share on other sites

#69 ·  Posted

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

Share this post


Link to post
Share on other sites

#70 ·  Posted

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!"

Share this post


Link to post
Share on other sites

#71 ·  Posted

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!"

Share this post


Link to post
Share on other sites

#72 ·  Posted

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

Share this post


Link to post
Share on other sites

#73 ·  Posted

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!"

Share this post


Link to post
Share on other sites

#74 ·  Posted

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) :)

Share this post


Link to post
Share on other sites

#75 ·  Posted

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!"

Share this post


Link to post
Share on other sites

#76 ·  Posted

@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!"

Share this post


Link to post
Share on other sites

#77 ·  Posted

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:

#494609

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

Best Regards

Share this post


Link to post
Share on other sites

#78 ·  Posted

Hi GEOSoft,

It does appear in the source of the file in the post:

#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!"

Share this post


Link to post
Share on other sites

#79 ·  Posted

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!"

Share this post


Link to post
Share on other sites

#80 ·  Posted

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0