Differences
This shows you the differences between the selected revisions of the page.
2019-03-22 | 2020-12-23 | ||
better wording + examples + separating scripting and .net part (martin) | automatically using target article title for link anchor (martin) | ||
Line 24: | Line 24: | ||
---- | ---- | ||
- | If you need more control (like if you want to delete the files only after all of them are transferred successfully), you can implement this easily using [[library|WinSCP .NET assembly]]. See example [[library_example_delete_after_successful_download|Deleting remote files after successful remote to local synchronization]]. | + | If you need more control (like if you want to delete the files only after all of them are transferred successfully), you can implement this easily using [[library|WinSCP .NET assembly]]. See example [[library_example_delete_after_successful_download|*]]. |
If you do not want to use .NET assembly: Perform the synchronization using ''[[scriptcommand_synchronize|synchronize]]'' command. Make sure the script generates [[logging_xml|XML log file]]. You can then [[logging_xml#parse|parse]] the log file to enumerate files that got successfully transferred, and use the list, to generate script to delete the source copies. | If you do not want to use .NET assembly: Perform the synchronization using ''[[scriptcommand_synchronize|synchronize]]'' command. Make sure the script generates [[logging_xml|XML log file]]. You can then [[logging_xml#parse|parse]] the log file to enumerate files that got successfully transferred, and use the list, to generate script to delete the source copies. | ||
- | |||
~~NOTOC~~ | ~~NOTOC~~ | ||