* "Lars Netzel" <no****@no.no> scripsit:
I have a number of files to copy. I have to total Amount of files and the
Total FileSize of this operation (for example 3453 files, 4065.4 Mb)... How
can I calculate how much time this will take so the user have an Idea of how
much time it will take to copy? This will also be something to base a
progressbar on.
IMO, that's not as easy. Windows provides this information and it's (at
least on my machine) always not accurate. When copying from HDD to HDD,
speed strongly depends on how fragmented the files are, so there is no
constant copying speed. You could, for example, calculate the current
time needed to copy 1 MB and then calculate how long the rest will take,
but if the copying speed decreases, the result can change quickly.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>