Differences

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

2013-05-23 2013-05-28
symbol qualification not needed (martin) using Register-ObjectEvent is more powershell-like + fixing function call (martin)
Line 206: Line 206:
    {     {
        # Will continuously report progress of transfer         # Will continuously report progress of transfer
-        $session.add_FileTransferProgress( { FileTransferProgress($_) } )+        Register-ObjectEvent -inputObject $session -eventName FileTransferProgress ` 
 +············-Action { FileTransferProgress($event.sourceEventArgs) } | Out-Null
        # Connect         # Connect

Last modified: by martin