How to check whether a file copied completely?
There is a build machine in the network where it will automatically download the code from source repository and compile using visual studio and compresses the complete code in a zip file.
I have added a line at the end of the build script(written in python on that machine) to copy that zip file to my ESX Virtual machine.
Where I kept a AutoIT exe to wait for the zip file, once it is copied then I will extract the contents and find only the dll files in the extracted folder and do the Install creation using Installshield silently and copy the created setup files to anther machine.
I wrote the script till the setup files creation.
But now the problem is, when the zip file is copying through network, the autoit script is detecting it even the copy is still in progress and trying to extract the zip file and failing.
Even when I am checking whether the file in use is not working.
Any suggestion on how to check whether the copy is completed.?
Answers (2)
Comments:
-
Looks bit complicated. :)
Present, I am copying one more empty text file after I copied this file as a confirmation of copy complete. - ur00361883 8 years ago
Comments:
-
But the copy time may vary based on network right. - ur00361883 8 years ago