Differences
This shows you the differences between the selected revisions of the page.
2009-05-07 | 2009-10-10 | ||
case (martin) | no summary (122.161.124.99) (hidden) | ||
Line 30: | Line 30: | ||
- | ===== Example of Support Request for Scripting ===== | + | I am very excited to be a part of this Forum and look forward to bringing Value to it. |
- | > 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. | + | |
+ | http://www.goarticles.com/cgi-bin/showa.cgi?C=1989925 |