Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
colfer

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?