Re: output from processing
You can enable XML logging and parse it:
https://winscp.net/eng/docs/logging_xml
Though easier is to use a WinSCP .NET assembly from a PowerShell script.
https://winscp.net/eng/docs/logging_xml
Though easier is to use a WinSCP .NET assembly from a PowerShell script.
$mode = [WinSCP.SynchronizationMode]::Local
$result =
$session.SynchronizeDirectories($mode, $localPath, $remotePath, $False)
# Throw on any error
$result.Check()
if ($result.Downloads.Length -ge 0)
{
Write-Host "Some files were downloaded"
}
else
{
Write-Host "No files were downloaded"
}