Post a reply

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

Elwood

Nice solution. I didn't see it.

Thanks.
Elwood

Filter out WinSCP.com connection text?

Hi,
It seems there is no way to remove/hide the connection text that don't interest me.
Consider this command to find if a "no-file" exists on the server.
Prompt> WinSCP.com /command "option batch continue" "option confirm off" "open ftp://..." "stat /no-file" exit

batch           continue
confirm         off
Connecting to ...
Connected
Starting the session...
Session started.
Active session: [1] user@...
Can't get attributes of file '/no-file'.
Could not retrieve file information
Unknown error


I would like to remove all lines WinSCP displays for the connection (the first 7 lines) and only display what my command does, which are:
Can't get attributes of file '/no-file'.
Could not retrieve file information
Unknown error

This way it is simpler to analyse the result.

2 suggestions:

  • The first lines could be sent to stderr, and the 3 last could be sent to stdout.
  • you could add two logging arguments like:
    /logconnect=C:\file1.log /logcommands=C:\file2.log


Thanks.

Note:
Could not retrieve file information

Unknown error

These two lines seem to contradict. The first line says "ok, I know there is no file here" and the second one says "I don't know what happened".
It looks like a bug to me.