Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: will WINSCP process only the fully available file - GET cmd?

How would WinSCP identify "fully available files"?
Sasidharan9513

will WINSCP process only the fully available file - GET cmd?

Hi There,

Below is my script which copy/delete the files from the Linux server to windows server.

option batch abort
option confirm off
open sftp://username:password@servename
cd download_test
get -delete *.pdf E:\Images\
close
exit

while I try to run the above script, I am getting some corrupted files on my windows server after the download process.

Reason:
-------
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?

Regards,
S.Sasidharan