PowerShell Help: Delete local files after sync
Dear WinSCP-users,
i'm currently trying to find a way to sync the contents of a local folder to a remote folder and delete the local files after a successful transfer.
I found this PowerShell script, but it does it the other way round..
https://winscp.net/eng/docs/library_example_delete_after_successful_download
I'm unfortunately not a PowerShell expert so i'm having difficulties understanding what i need to change.
I changed the
Any help is greatly appreciated :)
Thanks in advance
Sundance
i'm currently trying to find a way to sync the contents of a local folder to a remote folder and delete the local files after a successful transfer.
I found this PowerShell script, but it does it the other way round..
https://winscp.net/eng/docs/library_example_delete_after_successful_download
I'm unfortunately not a PowerShell expert so i'm having difficulties understanding what i need to change.
I changed the
SynchonizationMode
and the sync works when i execute the script. But the deletion won't work and i don't know what to change.
Any help is greatly appreciated :)
Thanks in advance
Sundance