Topic "XML Log Not Appending in 4.24b"

Author Message
Chad_C

Guest


I'm using a batch file to call WinSCP (with logging enabled. Each time the batch file is run, the XML log is written over. In other words, instead of the log getting appended with each new running of the batch file, it's completely over-written with new information.

Here is the batch file call:

winscp.exe /console /script=winscpscript.txt /log=winscplog.xml

Here are the contents of winscpscript:

option batch abort
option confirm off
open BofA
option transfer binary
put achfile
exit

I would like to either maintain one log file or create log files based on the date if one log file is not possible.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
Chad_C

Guest


prikryl wrote:
Please read documentation. If that does not help, come back.


The documentation does not show any configuration settings specific to using a scripted WinSCP session. I see that appending an XML log is not supported. How then can I specify logging, non-XML, using a scripted WinSCP session?

Thanks for the support.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I've posted the link, because it is explained there how to put a date into log file name. It works from the command line the same way as from GUI.
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