Two-way synchronization with delete with SFTP/FTP server with script automation (Task scheduler)
Hello,
I want to use this https://winscp.net/eng/docs/library_example_two_way_synchronize_delete command in a script with the Windows 10 Task scheduler. But when I try it i get the error:
My script:
I would be very happy if anybody could help me because I have been trying for many days to get it to work.
Thank you
I want to use this https://winscp.net/eng/docs/library_example_two_way_synchronize_delete command in a script with the Windows 10 Task scheduler. But when I try it i get the error:
I want the command to automatically synchronize two folders. This should happen in the background and as efficiently as possible.Script: Unbekannter Befehl „F:\...\SynchronizeTwoWayDelete.ps1“.
My script:
open sftp://.../ -hostkey="ssh-rsa 2048 ..." -rawsettings FSProtocol=2 ExecutionPolicy Bypass -File "F:\...\SynchronizeTwoWayDelete.ps1" -sessionUrl "sftp://...;fingerprint=ssh-rsa-...@.../" -localPath "C:\...\Neue Fotos sync both delete" -remotePath "/Camera/" -listPath "F:\...\cache.txt" exit
Thank you