Disk check

C

CM

Is there any way to do a disk check on just one file?

For example, to detect if a particular file is affected by bad sectors
without scanning the entire file system?
 
A

Arne Vajhøj

Is there any way to do a disk check on just one file?

For example, to detect if a particular file is affected by bad sectors
without scanning the entire file system?

Read all bytes of the file?

Arne
 
M

Mike Lovell

Is there any way to do a disk check on just one file?
For example, to detect if a particular file is affected by bad sectors
without scanning the entire file system?

Now that is an unusual request. I'm going to say no, not from C#. And
pretty complicated from C++.

I'm really not sure to its application, if you have hard drive you know has
a certain amount of bad sectors on it, for starters you want to stop using
it. Just running a chkdsk and it telling you there are bad sectors should
be enough for you to shift off off it, without worrying about the individual
files effected (which chkdsk will tell you anyhow).

What's the scenario and application you're looking to apply this to?
Perhaps there's a better method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top