Differences

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

2017-10-03 2017-10-03
using variable expansion in strings in powershell (martin) code wrapping for new design (martin)
Line 85: Line 85:
        {         {
            Write-Host "Synchronizing changes..."             Write-Host "Synchronizing changes..."
-            $result = $session.SynchronizeDirectories([WinSCP.SynchronizationMode]::Local, $localPath, $remotePath, $delete)+            $result = 
 + ···············$session.SynchronizeDirectories( 
 +····················[WinSCP.SynchronizationMode]::Local, $localPath, $remotePath, $delete)
            $changed = $False             $changed = $False
Line 116: Line 118:
                if ($localFiles)                 if ($localFiles)
                {                 {
-                    $changes = Compare-Object -DifferenceObject $localFiles2 -ReferenceObject $localFiles+                    $changes = 
 + ·······················Compare-Object -DifferenceObject $localFiles2
 +····························-ReferenceObject $localFiles
                               
                    $removedFiles =                     $removedFiles =

Last modified: by martin