FileInfo.Length will return the size of the file. The problem is that using
Explorer to copy a file (well, I guess it's probably the CopyFile API in
Windows) will cause the entire file to be allocated on disk and then the
data is transferred.
So, the result from FileInfo.Length depends on the application that copies
the file. You can see this by monitoring a file you're downloading using the
ftp command prompt tool which allocates the size as it is receiving data
FileInfo.Length would give you the true instant size.
Arild
"Curtis Kam" <lu*****@hongkong.com> wrote in message
news:O$*************@tk2msftngp13.phx.gbl...
Hi,
How can I monitor the file size of a file which is still copying? If I've
used FileInfo.Length, it'll return the final file size, not the
intermediate
one. Thanks.
Regards,
Curtis Kam