Differences

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

2013-07-23 2013-09-23
comments before Session.SynchronizeDirectories calls (martin) Avoid using Register-ObjectEvent cmdlet (martin)
Line 299: Line 299:
    {     {
        # Will continuously report progress of synchronization         # Will continuously report progress of synchronization
-        Register-ObjectEvent -inputObject $session -eventName FileTransferred ` +        $session.add_FileTransferred( { FileTransferred($_) } )
-············-Action { FileTransferred($event.sourceEventArgs) } | Out-Null+
        # Connect         # Connect

Last modified: by martin