VB.NET Defragment a file

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hello all, I'm wondering if it is possible to defrag a single file using VB
in order to speed up that same file's access time....

I have determined that my application runs a lot faster that way, but it's
kind of a pain to defrag the whole disk each time.

Thanks in advance...!
 
Frank said:
Hello all, I'm wondering if it is possible to defrag a single file
using VB in order to speed up that same file's access time....

You could try copying the file - as the filesystem knows what size it is, it
may well put it into contiguous blocks. Or not - depending on the phase of
the moon etc.

Andrew
 
Back
Top