PDA

Click to See Complete Forum and Search --> : Using API Call to build a SCANDISK-like app.


wengang
Jul 28th, 2000, 12:23 AM
Hi. Sorry to bring this up again, but I'm still working on the floppy disk thing.

Has anybody tried to build an application like scandisk that marks sectors on a disk as bad when they cannot read-write?

So far, all I have been able to get is that Scandisk uses a dll called dskmaint.dll in Windows\system\

If you run that thru a hex editor, you can see that it mentions something near the end about Windows API s for disk maintenance.
So, i guess that means there would be an API call in VB that could make this work as well.

Any thoughts?


By the way, in case anyone cares, sth I found on the net to remove the BAD cluster label placed by SCANDISK, just change the number set in the registry under Check Drive:Settings so that the last two digits are 04. Then run scandisk again and it will give you the option to remove the markers. After one run, values return to 00.

Crazy D
Jul 28th, 2000, 03:14 AM
I believe http://www.sysinternals.com has a working example.

wengang
Jul 28th, 2000, 09:06 PM
Hey.
Thanks for the tip.

I've been to the site, but based on the descriptions, i didn't see which of the programs had this ability.


DO you happen to know?

Thanks again.

Crazy D
Jul 31st, 2000, 01:54 AM
Oh sh*it must have been thinking about another program while I answered... can't find it either.. sorry..
Well at least the site might be helpfull, they have some kewl low-level stuff (wonder though how much of that can be done from within VB).

wengang
Jul 31st, 2000, 07:34 AM
Well, anyway,
thanks for the tip.

I used Norton Utilities Disk Editor for the task I had in mind. maybe in the future, i will look into incorporating the function though.


Cheers.

V(ery) Basic
Jul 31st, 2000, 08:32 AM
Oh sh*it


Is is just me, or does that say **** with an asterisk between the 'h' and the 'i'?

;) Sh*t is what us experts use ;)

wengang
Aug 1st, 2000, 05:06 AM
Is it just me or did you say 'is is just me'?

Just kidding :)