Topic "Trouble setting server timeout via command line"

Author Message


I have a client with a slow FTP server, it takes 25 seconds or so to connect. Whenever i attempt to add the -timeout=xxx variable to the end of my open command, winscp just bails out. No session log file is even created. If i remove the -timeout variable, it attempts to work.

Here is the command line:
WinSCP3.exe /console /script=test.txt /log=log.txt

Here is the script:
option batch on
option confirm off
open user:pass@site -timeout=60
option transfer binary
get *05152008*


It seems to be some sort of syntax issue... if i try running the command from the winscp console i get this:

winscp> open user:pass@server timeout=60
Too many parameters for command 'open'.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Switches are supported only since version 4.1. I guess you are using an older version.
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License