im having a problem with the DLL + Exe in VB 2010 (Express).
I can download a file without a problem as long as its in the home directory.
As soon as i put it in a directory it fails with an exception: can not get attributes, file not found.
Tested with FreeNAS ftp server and Local Filezilla server.
Dim sessionOptions As New SessionOptions
.Protocol = Protocol.Ftp
.HostName = "localhost"
.UserName = "support"
.Password = "password!"
Using session As Session = New Session
session.ExecutablePath = Application.StartupPath & "\Tools\WinSCP.exe"
session.DebugLogPath = "c:\debug.txt"
session.SessionLogPath = "c:\session.txt"
Dim transferOptions As New TransferOptions
transferOptions.TransferMode = TransferMode.Binary
Dim transferResult As TransferOperationResult
transferResult = session.GetFiles("\testje\update.txt", "C:\Test\Document.txt")