Re: Winscp : download updating log file to local
Are you asking how to continually download new contents from the remote log file?
Use
https://winscp.net/eng/docs/scriptcommand_get#resume
And loop the script continuously. E.g. from a batch file using
Though that will require new connection for each update.
You may want to use WinSCP .NET assembly instead, to run the loop over one connection.
Use
get -resume
in WinSCP script:
https://winscp.net/eng/docs/scriptcommand_get#resume
And loop the script continuously. E.g. from a batch file using
goto
command.
:loop
winscp.com /script=get.txt /log=c:\path\to\winscp.log
goto loop
Though that will require new connection for each update.
You may want to use WinSCP .NET assembly instead, to run the loop over one connection.