Re: Script for transferring file from remote location
Just use
See https://winscp.net/eng/docs/scriptcommand_get
WinSCP GUI can generate such script for you:
https://winscp.net/eng/docs/guide_automation#generating
get -delete /remote/path/* C:\local\path\*
See https://winscp.net/eng/docs/scriptcommand_get
WinSCP GUI can generate such script for you:
https://winscp.net/eng/docs/guide_automation#generating