471,337 Members | 1,068 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

File copy

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.
Jul 21 '05 #1
4 1351
> 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?
Jul 21 '05 #2

"Cor Ligthert" <no************@planet.nl> ha scritto nel messaggio
news:ex**************@tk2msftngp13.phx.gbl...
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?


I think CopyFile API doesn't check security permissions, but I'm not sure.
Jul 21 '05 #3
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?


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
Jul 21 '05 #4
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.

"Pino" <pi********************@gmail.com> wrote in message
news:OT**************@TK2MSFTNGP10.phx.gbl...
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.

Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by RitaG | last post: by
5 posts views Thread by DraguVaso | last post: by
8 posts views Thread by luis molina Micasoft | last post: by
1 post views Thread by =?Utf-8?B?UmFkZW5rb19aZWM=?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.