We use WinScp within a .NET assembly to download regularily many groups of files from ftp-server. In each group is one textfile (small) and two files containing (big) images. We would download the textfiles first and the images in a separate background-thread, because the textfiles contain informations to do further work with the corresponding images of the respective group. This further work should be done while the images are being transferred in the separate background-thread.
We tried to start WinScp like this:
workThread = New Thread(New ThreadStart(AddressOf MoveImages)) workThread.Priority = ThreadPriority.AboveNormal workThread.Start()
Function MoveImages works well, but if its executed in workThread nothing is downloaded. How can we reach our goal?
And how could we get information about exitcodes WinSCP in this workthread?
And last but not least: the amount of your support is impressing!!! :D
Many thanks for your posts!