I would like to keep the session open because connecting to the server and setting up a new session is the slowest part of the upload operation. Often I am uploading the same small file many times to the same server. For instance, I am debugging server-side PHP or Perl scripts. I can switch from my editor to the WinSCP GUI and back, but it is easier to integrate WinSCP calls into my editor. Also, my editor knows which files it wants to upload. Currrently, my editor uses the above call to a WinSCP console script.
So what should I do? Is there a DLL? Can I use Servant Salamander or FAR to get a hook into WinSCP?