script or dll: keep session open to use again

Advertisement

colfer
Guest

script or dll: keep session open to use again

I use WinSCP scripting to upload files from another program. I use the Windows API ShellExecute() call to run
"winscp3.com '/script=..."

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: script or dll: keep session open to use again

You can setup your editor as external editor for WinSCP. I guess that's the easiest way.

Reply with quote

Advertisement

You can post new topics in this forum