Re: Two-way synchronization with delete with SFTP/FTP server with script automation (Task scheduler)
You are on a wrong track.
That is a PowerShell script. It has nothing to do with WinSCP scripting.
You have to execute that script standalone (like from a batch file or PowerShell), not from WinSCP script.
Example of the command-line needed to run the script is given on the script article:
https://winscp.net/eng/docs/library_example_two_way_synchronize_delete
That is a PowerShell script. It has nothing to do with WinSCP scripting.
You have to execute that script standalone (like from a batch file or PowerShell), not from WinSCP script.
Example of the command-line needed to run the script is given on the script article:
https://winscp.net/eng/docs/library_example_two_way_synchronize_delete