11-14-2018 10:30 AM - edited 11-14-2018 10:36 AM
Hello,
I have coded some line to zip files into one archive file (.zip) then I wanted to copy it to another folder.
The problem is when I use CopyFile, the new copy file is created, but still at 0 Kb even if I checked the source file and it is not empty...
So randomly, I got few empty files, with no error (CopyFile return 0).
I'm not using windows API.
The destination folder where I need to copy the file is on remote (drive).
Can someone tell me why I got this ?
Thanks,
Solved! Go to Solution.
11-15-2018 01:29 AM
When you created the source file did you flush the file buffer before closing the file?
11-16-2018 06:22 AM - edited 11-16-2018 06:23 AM
Yes I did.
I found the problem : when the software launch the copy process, sometimes the zipping cmd didn't finished to compress all files yet... So I synchronized this.
Thanks.