XML Log Not Appending in 4.24b

Advertisement

Chad_C
Guest

XML Log Not Appending in 4.24b

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,540
Location:
Prague, Czechia

Re: XML Log Not Appending in 4.24b

Please read documentation. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

Chad_C
Guest

Re: XML Log Not Appending in 4.24b

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,540
Location:
Prague, Czechia

Re: XML Log Not Appending in 4.24b

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.

Reply with quote

Advertisement

You can post new topics in this forum