Topic "How to connect to another host without creating a new object"

Author Message
[View user's profile]

Joined: 2014-09-08
Posts: 2
Location: Lille, France
Hello all, this is my first post.

I had a look around to find a solution to this problem but I did not find the answer.

This is my pb :
I'm using WinSCP dll in .net visual studio 2008

I want to connect to 6 hosts and get files.

I first connect to the first host.
But I don't know how to close the session and re open a new one for the second host without creating a new object.

I hope that my explanation was clear enough ?

Has someone the solution for this kind of pb ?

WinSCP.Close() is not found in the methods I only have Dispose()
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
The Session.Close is available in the latest beta version only:

Anyway, what's is the problem in creating a new object for every session?
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License