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

Author Message


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

open connection
put file

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!

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

Yes. See or

Or even better, use WinSCP .NET assembly:

Thx a lot, Martin.

You can post new topics in this forum


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