Differences

This shows you the differences between the selected revisions of the page.

2009-05-06 2009-05-06
scripting info (martin) example of scripting support request (martin)
Line 27: Line 27:
> Using WinSCP 4.1.4 with "Commander" interface on Windows XP SP3. > Using WinSCP 4.1.4 with "Commander" interface on Windows XP SP3.
> >
-> It happens for any stored session in subfolder, regardless of protocol or server. So I'm not attaching session log file as it seems irrelevant.+> It happens for any stored session in subfolder, regardless of protocol or server. So I'm not posting session log file as it seems irrelevant. 
 +  
 + 
 +===== Example of Support Request for Scripting ===== 
 +> Subject: **Trouble setting server timeout via command line** 
 +
 +> 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'' switch to the end of my ''open'' command, WinSCP just bails out. No session log file is even created. If I remove the ''-timeout'' switch, it connects. 
 +
 +> Here is the command line:\\ 
 +> ''winscp.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*''\\ 
 +> ''close''\\ 
 +> ''exit'' 
 +
 +> After running the script I get following in console:\\ 
 +> ''Too many parameters for command 'open'.'' 
 +
 +> Using WinSCP 4.0.7 on Windows 2000. 

Last modified: by martin