Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Skip connection headers with scripting

No. If you want a more structured output, consider using XML logging. And you can re-format the log any way you like.
https://winscp.net/eng/docs/logging_xml
sumi

Skip connection headers with scripting

When winscp.com is executed from a batch file, and the output is redirected to a file (hence not using log option), a few header lines are shown in the file, related to the "connection" phase before the "actual commands" output:

"headers"
confirm         off       

Connecting to x.x.x.x.:990 ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] user@x.x.x.x

"commands"
/directory

file.txt |          228 B |    7.2 KB/s | binary | 100%

Is there a way to skip or suppress the connection header section, and only output the result of the commands?
thanks