Perhaps I am misunderstanding that SynchronizationResult has a TransferEventArgsCollection that I can iterate through to get the .FileName of each transferred file. I'd appreciate clarity on the proper method.
I am using AutoIT and here is the code snippet causing issues:
; this works
$syncResult = $session.SynchronizeDirectories($syncMode, $localDir, $remoteDir, False)
If Not $syncResult.IsSuccess Then
; here is where I am getting the COM error "Unknown name" for the $syncResult.Transfers object
; I have tried $syncResult.TransferEventArgsCollection, but that results in the same thing
For $transferItem in $syncResult.Transfers
ConsoleWrite($transferItem.FileName & @CRLF)
Thanks in advance.