Below is my script which copy/delete the files from the Linux server to windows server.
option batch abort
option confirm off
get -delete *.pdf E:\Images\
while I try to run the above script, I am getting some corrupted files on my windows server after the download process.
One of our process tries to write file to the linux folder and at the same time the WINSCP tries to copy the file to the windows server this the reason that I am getting a corrupted file.
How to restrict the WINSCP to copy only fully available files?