Differences

This shows you the differences between the selected revisions of the page.

2011-07-31 2013-01-31
scriptcommand_* + typo (martin) suggest using .NET (martin)
Line 13: Line 13:
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. 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.
 +
 +It might be easier for you to use [[library|WinSCP .NET assembly]] for such task. Handle ''[[library_session_filetransferred|Session.FileTransferred]]'' event, and use ''[[library_session_synchronizedirectories|Session.SynchronizeDirectories]]'' method followed by ''[[library_session_removefiles|Session.RemoveFiles]]''.
~~NOTOC~~ ~~NOTOC~~

Last modified: by martin