Differences
This shows you the differences between the selected revisions of the page.
2013-05-28 | 2013-07-23 | ||
using Register-ObjectEvent is more powershell-like (martin) | comments before Session.SynchronizeDirectories calls (martin) | ||
Line 79: | Line 79: | ||
session.Open(sessionOptions); | session.Open(sessionOptions); | ||
+ | // Synchronize files | ||
SynchronizationResult synchronizationResult; | SynchronizationResult synchronizationResult; | ||
synchronizationResult = | synchronizationResult = | ||
Line 171: | Line 172: | ||
session.Open(sessionOptions) | session.Open(sessionOptions) | ||
+ | ' Synchronize files | ||
Dim synchronizationResult As SynchronizationResult | Dim synchronizationResult As SynchronizationResult | ||
synchronizationResult = _ | synchronizationResult = _ | ||
Line 302: | Line 304: | ||
# Connect | # Connect | ||
$session.Open($sessionOptions) | $session.Open($sessionOptions) | ||
+ | |||
+ | # Synchronize files | ||
$synchronizationResult = $session.SynchronizeDirectories( | $synchronizationResult = $session.SynchronizeDirectories( | ||
[WinSCP.SynchronizationMode]::Remote, "d:\www", "/home/martin/public_html", $False) | [WinSCP.SynchronizationMode]::Remote, "d:\www", "/home/martin/public_html", $False) |