Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.

$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"
}
robkof

output from processing

How become output from processing? If something were synchronized, then make something in batch file. Thanx

<run.bat>
WinSCP.com /script=script.txt
if (something were synchronized) start D:\photos\


<script.txt>
open ftp://name:pass@192.168.0.20:22
cd Camera
synchronize local D:\photos\
exit




Can you please help me?