Help on File.Copy speed

  • Thread starter Thread starter adnan boz
  • Start date Start date
A

adnan boz

Hi All,

Does somebody know why File.Copy function is 10 times slower than standard
windows drag and drop copy between folders, when I copy files over the
network?
Actually, I need to copy files from one computer to another over a 1GBit
ethernet network as fast as I can. Although windows copy works at %40
performance, File.Copy could not go further than %4.

What could be the reason? What would be the best solution; is it feasible to
use the win32 API functions instead? or is there an undocumented property of
the Copy method somewhere in the framework?

Please help ASAP.

TIA
Adnan
 
Hi,

It's weird that performance penalty, you may experience some but no so
drastic.

I bet that what File.Copy does is call the Win32 API to do the real job , so
I see no real improvement if you call it directly.

cheers,
 

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