By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,098 Members | 1,881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,098 IT Pros & Developers. It's quick & easy.

Help on File.Copy speed

P: n/a
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


Nov 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"adnan boz" <ab*********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP14.phx.gbl...
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


Nov 17 '05 #2

P: n/a
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"adnan boz" <ab*********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP14.phx.gbl...
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


Nov 17 '05 #3

P: n/a
Both File.Copy and Win32 Copy should be equaly fast.

Willy.

"adnan boz" <ab*********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP14.phx.gbl...
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


Nov 17 '05 #4

P: n/a
Both File.Copy and Win32 Copy should be equaly fast.

Willy.

"adnan boz" <ab*********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP14.phx.gbl...
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


Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.