Christophe,
You can't really do that unless you are in the process of sending the
file. The best you can do is make estimates on each side of the process.
When you begin to sending/receive, store the time. As you send/receive
each group of bytes, you take note of the elapsed time (the current time
minus the start time). Divide that by the number of bytes sent/received to
determine how long it takes to send one byte. Then, multiply that ratio by
the number of bytes left, and you will have the approximate time left to
perform the transfer.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Christophe F. [MS]" <ch******@online.microsoft.com> wrote in message
news:e7**************@tk2msftngp13.phx.gbl...
Hello,
I'm looking for sample code in C# that will estimate the transfer time for
a file between two machines (taking into account bandwidth and latency).
--
Regards,
CF