Re: WinSCP - scripts to open connection and copy files
You cannot do loop in WinSCP script.
So either you will have to loop outside of the script (which means a reconnect for each iteration).
Or use WinSCP .NET assembly from your favorite scripting language (like PowerShell), where you can do the loop.
https://winscp.net/eng/docs/library_powershell
Or use
https://winscp.net/eng/docs/scriptcommand_keepuptodate
So either you will have to loop outside of the script (which means a reconnect for each iteration).
Or use WinSCP .NET assembly from your favorite scripting language (like PowerShell), where you can do the loop.
https://winscp.net/eng/docs/library_powershell
Or use
keepuptodate
command:
https://winscp.net/eng/docs/scriptcommand_keepuptodate