mardi 26 décembre 2017

Avoid listing of files being copied, from a directory in C++ Windows

I am copying a file from source server directory to destination server directory. There is a program which runs on the destination server. It reads the directory at regular intervals and finds the list of all files from that directory using FindFirstFile & FindNextFile functions. My problem is due to slow connection between two servers, it takes time to copy large files from source to destination. When I start copying the file, before completion of copy, the program running on the destination server, lists the name of that file. I want to avoid listing of such files which are being copied and it should be possible to list the file only when it is completely copied to the destination server.

Aucun commentaire:

Enregistrer un commentaire