I have two old computers A and B, which are running Windows XP and connected to the same LAN with shared folder created. Computer A shares a folder to all computers on the same LAN.
About every 10 seconds, computer B will transfer a 3-MB file (always named
rpme.dat) over the LAN to the share folder. This is done by a 3rd-party application. I don't have any control over that.
In computer A, I developed a program to poll if the file
rpme.dat exists or not. If so, the program will copy rpme.dat to other folder and rename it. However, sometimes when it detects the existence of the file, it doesn't mean the file transferring is done. So sometimes my program copies the partially-saved file instead of the whole one. I don't understand why. The LAN is pretty fast and the file is just 3 MB. Is there any way to boost the speed of the file transfer or any faster way to share the file over the LAN?
P.S. If I have my program in computer wait 5 seconds before copying the file, it works pretty well; 99% of the time I will get the whole file copied. But for some reason, I cannot always wait that long.