Thanks for the example this works for me. With my limited understanding I am not sure how I am to know the argument order for options.
Just follow the documentation:
https://winscp.net/eng/docs/library_session_synchronizedirectories
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Thanks for the example this works for me. With my limited understanding I am not sure how I am to know the argument order for options.
options
is 7th argument of SynchronizeDirectories
, not 5th.
$session.SynchronizeDirectories([WinSCP.SynchronizationMode]::Remote,"C:\Users\1234\desktop\testupload\", "/BatchAPI/test/", $False, $False, [SynchronizationMode.SynchronizationCriteria]::Time, $transferOptions)
| ~*
, not ~*
~
using a filemask | ~*
.
Session.QueryReceived
to continue on error: