Help on File.Copy speed

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

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

Top