Results 1 to 7 of 7

Thread: Using API Call to build a SCANDISK-like app.

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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.

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    I believe http://www.sysinternals.com has a working example.
    Hope this helps

    Crazy D

  3. #3

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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.

  4. #4
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    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).
    Hope this helps

    Crazy D

  5. #5

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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.

  6. #6
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    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
    Courgettes.

  7. #7

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    Is it just me or did you say 'is is just me'?

    Just kidding

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width