Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determine when copy file instruction has been completed

Status
Not open for further replies.

oldwiseone

Programmer
Sep 28, 2002
18
0
0
GB
I am want to copy a file to a zip drive, No problem there.
I need to know when the file has finished being copied.
the problem that i have is that the first time i copy the file it takes about 20 secs between start and finish.
during which time i show the flying paper.
if i try and copy it again it appears to takes about a second, no time for the flying paper. but the zip drive operates for another 20 secs downloading the file.

I need to be able to tell when the zip has finished.
any ideas?
 
You could try doing a size comparison between the source and destination using FileLen.

You will probably need to loop the comparison until both file lengths are the same and will need some error handling to cope with the Zip drive being busy.

More likely you will not be able to access the Zip drive while the file is being copied so loop round an error routine until you can access the drive then check the file length to make sure it matches the source.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top