File copy

  • Thread starter Thread starter Pino
  • Start date Start date
P

Pino

What is the fastest way to copy a file from a device to a different
destination?

I know there is a difference between File.Copy and the FileCopy API.

Thanks,

Pino.
 
What is the fastest way to copy a file from a device to a different
destination?

I know there is a difference between File.Copy and the FileCopy API.

And what is that Pino?
 
Pino,
I think CopyFile API doesn't check security permissions, but I'm not sure.
When you are not sure about it, I would not bother about it. In this area we
are talking about trying performance win where even the 80/20 rule does not
exist. It is not reasonable to look for that. The hardware will forever be
the biggest bottleneck.

Just my thought,

Cor
 
Hi Pino,
File.Copy : Copies an existing file to a new file.
Regarding FileCopy API, my guess would be that its "similar" to File.Copy
but an unmanaged call.

Looks like File.Copy is a managed wrapper for the native FileCopy API.

Happy Coding.
 
Back
Top