Hello, Martin. Thanks for the letter. Will install it a bit later. Before it here is the code:
Try
sessionOptions = New COMobject("WinSCP.SessionOptions");
sessionOptions.HostName = "XXX";
sessionOptions.UserName = "XXX";
sessionOptions.Password = "XXX";
sessionOptions.SshHostKeyFingerprint = "XXX";
session = New COMobject("WinSCP.Session");
//session.SessionLogPath = "D:\log.txt";
session.DebugLogPath = "D:\log2.txt";
// Connect
session.Open(sessionOptions);
session.Dispose();
Message("ОК");
Except
Message(ErrorDescription());
EndTry;
And client log(but old version):
[2014-12-09 13:21:42.998Z] [0001] Runtime: 2.0.50727.5485
[2014-12-09 13:21:42.998Z] [0001] Console encoding: Input: Cyrillic (Windows) (1251); Output: Cyrillic (Windows) (1251)
[2014-12-09 13:21:42.998Z] [0001] Working directory: C:\Program Files (x86)\XXX\common
[2014-12-09 13:21:49.388Z] [0001] Result []
[2014-12-09 13:21:49.448Z] [0001] Session.System.Reflection.IReflect.GetProperties entering
[2014-12-09 13:21:49.458Z] [0001] Result [12]
[2014-12-09 13:21:49.458Z] [0001] Session.System.Reflection.IReflect.GetProperties leaving
[2014-12-09 13:21:49.458Z] [0001] Session.System.Reflection.IReflect.GetFields entering
[2014-12-09 13:21:49.458Z] [0001] Fields [0]
[2014-12-09 13:21:49.458Z] [0001] Session.System.Reflection.IReflect.GetFields leaving
[2014-12-09 13:21:49.458Z] [0001] Session.System.Reflection.IReflect.GetMethods entering
[2014-12-09 13:21:49.458Z] [0001] Result [48]
[2014-12-09 13:21:49.458Z] [0001] Session.System.Reflection.IReflect.GetMethods leaving
[2014-12-09 13:21:49.458Z] [0001] Name [Open]
[2014-12-09 13:21:49.458Z] [0001] Target [WinSCP.Session]
[2014-12-09 13:21:49.458Z] [0001] Args [1] [null]
[2014-12-09 13:21:49.458Z] [0001] Arg [0] [WinSCP.SessionOptions] [null]
[2014-12-09 13:21:49.458Z] [0001] Culture [ru-RU]
[2014-12-09 13:21:49.458Z] [0001] Invoking
[2014-12-09 13:21:49.458Z] [0001] Session.Open entering
[2014-12-09 13:21:49.458Z] [0001] Session.SetupTempPath entering
[2014-12-09 13:21:49.458Z] [0001] Temporary folder: C:\Users\XXX\AppData\Local\Temp\
[2014-12-09 13:21:49.458Z] [0001] Temporary file [C:\Users\XXX\AppData\Local\Temp\wscp1210.033C0D9D.tmp] - Exists [False]
[2014-12-09 13:21:49.458Z] [0001] Session.SetupTempPath leaving
[2014-12-09 13:21:49.458Z] [0001] ExeSessionProcess..ctor entering
[2014-12-09 13:21:49.458Z] [0001] ExeSessionProcess.GetExecutablePath entering
[2014-12-09 13:21:49.468Z] [0001] Executable found in C:\Program Files (x86)\WINSCP\winscp.exe
[2014-12-09 13:21:49.468Z] [0001] ExeSessionProcess.GetExecutablePath leaving
[2014-12-09 13:21:49.468Z] [0001] EXE executable path resolved to C:\Program Files (x86)\WINSCP\winscp.exe
[2014-12-09 13:21:49.468Z] [0001] ExeSessionProcess.CheckVersion entering
[2014-12-09 13:21:49.608Z] [0001] Version of C:\Program Files (x86)\WINSCP\winscp.exe is 5.5.5.4605, product WinSCP version is 5.5.5.0
[2014-12-09 13:21:49.608Z] [0001] ExeSessionProcess.CheckVersion leaving
[2014-12-09 13:21:49.608Z] [0001] ExeSessionProcess..ctor leaving
Hope it will be useful. Thank you.