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

Author Message
Jason

Guest


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
Advertisements
Guest




Is there support for controlling the verbosity of scripted logging with WinSCP.exe?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Do not use /timeout switch on command line for scripting. Use -timeout switch of open command:
http://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.
_________________
Martin Prikryl
Guest




prikryl wrote:
Do not use /timeout switch on command line for scripting. Use -timeout switch of open command:
http://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.
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