Re: Change file name on destination
You cannot change the file name with
You would have to use a plain
https://winscp.net/eng/docs/library_powershell
Here is an example that does this, just with an opposite synchronization:
https://winscp.net/eng/docs/library_example_keep_local_directory_up_to_date
Though for local to remote direction, better than polling is to use local file system notifications.
keepuptodate command.
You would have to use a plain
put and handle the monitoring of local file changes on your own. But then it would be better to use WinSCP .NET assembly (and it's Session.PutFiles) combined with some scripting language (e.g. a PowerShell).
https://winscp.net/eng/docs/library_powershell
Here is an example that does this, just with an opposite synchronization:
https://winscp.net/eng/docs/library_example_keep_local_directory_up_to_date
Though for local to remote direction, better than polling is to use local file system notifications.