Differences

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

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

Last modified: by martin