Topic "Automated upload - keeping same session open - How?"

Author Message
Guest




Hello,

Currently I have a working batch file which is calling winscp.com /script.... each 30 seconds to put a file on the server.
So the winscp script is mainly:

...
open connection
put file
exit
...

But this means that everytime a new connection has to be established, file is placed and connection is closed again. Isn't there a possibilty to open just at the very beginning the connection and then leave the session open and place files as often as I want on the same open connection? (like you would do, when working on the GUI or the console in non-interactive mode)
Would it work with Input redirection and if yes, how? (I know there is keepuptodate/synchronize, but this isn't quite the solution for my case as I need to place a file really every 30 seconds)

Thx for advice!

br
trikkar
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Anonymous wrote:
Would it work with Input redirection and if yes, how?

Yes. See
https://winscp.net/eng/docs/guide_dotnet#input or
https://winscp.net/eng/docs/guide_automation_advanced#inout

Or even better, use WinSCP .NET assembly:
https://winscp.net/eng/docs/library
Guest




Thx a lot, Martin.
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License