Output redirection for WinSCP.exe... not WinSCP./com

Advertisement

Jason
Guest

Output redirection for WinSCP.exe... not WinSCP./com

Hi,

I am trying to incorporate a timeout parameter (/timeout=90) into my batch file. I know that WinSCP.com does not support this but WinSCP.exe does. What WinSCP.exe does not support is output redirection, and the /log option is far too verbose. I am incorporating the WinSCP response into the log of my batch file, so I need to have the appropriate amount of information sent back (redirection was a good amount).

Is there a way to incorporate output redirection into WinSCP.exe or have have less verbose logging? If WinSCP.com would accept /timeout parameters then that would be fine too.

This is my first time using either tool in this way, so hopefully I am not missing anything here.

Thanks,
Jason

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,552
Location:
Prague, Czechia

Re: Output redirection for WinSCP.exe... not WinSCP./com

Do not use /timeout switch on command line for scripting. Use -timeout switch of open command:
https://winscp.net/eng/docs/scriptcommand_open

To answer your questions:
1) No way to use output redirection with winscp.exe. That's restrictions imposed by Windows.
2) winscp.com does support /timeout switch, but it's deliberately not documented as it is not recommended to do that.

Reply with quote

Guest

Re: Output redirection for WinSCP.exe... not WinSCP./com

martin wrote:

Do not use /timeout switch on command line for scripting. Use -timeout switch of open command:
https://winscp.net/eng/docs/scriptcommand_open

To answer your questions:
1) No way to use output redirection with winscp.exe. That's restrictions imposed by Windows.
2) winscp.com does support /timeout switch, but it's deliberately not documented as it is not recommended to do that.

Thanks for the clarification. Setting the timeout at the open command makes sense.

Reply with quote

Advertisement

You can post new topics in this forum