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
 

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

Back
Top