Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

rgoins

Re: GUI Works but Command Line does not

Thanks for the email and assistance. I have replied to your email and included a log file.
martin

Re: GUI Works but Command Line does not

Anyway... I have sent you an email.
martin

Re: GUI Works but Command Line does not

Can you post a log file from GUI?
rgoins

GUI Works but Command Line does not

I cannot get WinSCP to cooperate at all when working from the command line or with a script, but the GUI works like a champ. Here are the commands from the text file that my batch file calls.


open ftps://HOSTNAME|USERNAME:PASSWORD@HOSTNAME -passive
cd "school/systems design"
option confirm off
option transfer ascii
lcd c:\CSDI\CafExp\Data
get CAFEXP.ALL.TXT
close
exit

It connects fine but will not retrieve the file and gives me an error. Below are the results/errors.

<invalid hyperlink removed by admin>


Here are the results from my log file:

. 2011-08-17 13:36:42.562 --------------------------------------------------------------------------
. 2011-08-17 13:36:42.562 WinSCP Version 4.3.4 (Build 1428) (OS 5.2.3790 Service Pack 2)
. 2011-08-17 13:36:42.562 Configuration: C:\Program Files\WinSCP\WinSCP.ini
. 2011-08-17 13:36:42.562 Login time: Wednesday, August 17, 2011 1:36:42 PM
. 2011-08-17 13:36:42.562 --------------------------------------------------------------------------
. 2011-08-17 13:36:42.562 Session name: ftp.txsuite.txeis.esc6.net|rgoins@ftp.txsuite.txeis.esc6.net (Ad-Hoc session)
. 2011-08-17 13:36:42.562 Host name: ftp.txsuite.txeis.esc6.net (Port: 990)
. 2011-08-17 13:36:42.562 User name: ftp.txsuite.txeis.esc6.net|rgoins (Password: Yes, Key file: No)
. 2011-08-17 13:36:42.562 Tunnel: No
. 2011-08-17 13:36:42.562 Transfer Protocol: FTP
. 2011-08-17 13:36:42.562 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2011-08-17 13:36:42.562 Proxy: none
. 2011-08-17 13:36:42.562 FTP: FTPS: Implicit SSL/TLS; Passive: Yes [Force IP: No]
. 2011-08-17 13:36:42.562 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-08-17 13:36:42.562 Cache directory changes: Yes, Permanent: Yes
. 2011-08-17 13:36:42.562 DST mode: 1
. 2011-08-17 13:36:42.562 --------------------------------------------------------------------------
. 2011-08-17 13:36:42.687 Connecting to HOSTNAME:990 ...
. 2011-08-17 13:36:42.718 Connected with HOSTNAME:990, negotiating SSL connection...
. 2011-08-17 13:36:42.796 SSL connection established. Waiting for welcome message...
< 2011-08-17 13:36:42.796 220 Microsoft FTP Service
> 2011-08-17 13:36:42.796 USER HOSTNAME|USERNAME
< 2011-08-17 13:36:42.812 331 Password required for HOSTNAME|USERNAME.
> 2011-08-17 13:36:42.812 PASS *********
< 2011-08-17 13:36:42.828 230 User logged in.
> 2011-08-17 13:36:42.828 SYST
< 2011-08-17 13:36:42.859 215 Windows_NT
> 2011-08-17 13:36:42.859 FEAT
< 2011-08-17 13:36:42.875 211-Extended features supported:
< 2011-08-17 13:36:42.875 LANG EN*
< 2011-08-17 13:36:42.875 UTF8
< 2011-08-17 13:36:42.875 AUTH TLS;TLS-C;SSL;TLS-P;
< 2011-08-17 13:36:42.875 PBSZ
< 2011-08-17 13:36:42.875 PROT C;P;
< 2011-08-17 13:36:42.875 CCC
< 2011-08-17 13:36:42.875 HOST
< 2011-08-17 13:36:42.875 SIZE
< 2011-08-17 13:36:42.875 MDTM
< 2011-08-17 13:36:42.875 REST STREAM
< 2011-08-17 13:36:42.875 211 END
> 2011-08-17 13:36:42.875 OPTS UTF8 ON
< 2011-08-17 13:36:42.890 200 OPTS UTF8 command successful - UTF8 encoding now ON.
> 2011-08-17 13:36:42.890 PBSZ 0
< 2011-08-17 13:36:42.906 200 PBSZ command successful.
> 2011-08-17 13:36:42.906 PROT P
< 2011-08-17 13:36:42.937 200 PROT command successful.
. 2011-08-17 13:36:42.937 Connected
. 2011-08-17 13:36:42.937 --------------------------------------------------------------------------
. 2011-08-17 13:36:42.937 Using FTP protocol.
. 2011-08-17 13:36:42.937 Doing startup conversation with host.
> 2011-08-17 13:36:42.937 PWD
< 2011-08-17 13:36:42.968 257 "/" is current directory.
. 2011-08-17 13:36:42.968 Getting current directory name.
. 2011-08-17 13:36:42.968 Startup conversation with host finished.
< 2011-08-17 13:36:42.968 Script: Active session: [1] HOSTNAME|USERNAME@HOSTNAME
> 2011-08-17 13:36:42.968 Script: cd "cameron/systems design"
. 2011-08-17 13:36:42.968 Cached directory change via "cameron/systems design" to "/cameron/systems design".
. 2011-08-17 13:36:42.968 Getting current directory name.
< 2011-08-17 13:36:42.968 Script: /cameron/systems design
> 2011-08-17 13:36:42.968 Script: option confirm off
< 2011-08-17 13:36:42.968 Script: confirm off
> 2011-08-17 13:36:42.968 Script: option transfer ascii
< 2011-08-17 13:36:42.968 Script: transfer ascii
> 2011-08-17 13:36:42.968 Script: lcd c:\CSDI\CafExp\Data
< 2011-08-17 13:36:42.968 Script: c:\CSDI\CafExp\Data
> 2011-08-17 13:36:42.968 Script: get CAFEXP.ALL.TXT
. 2011-08-17 13:36:42.968 Listing file "CAFEXP.ALL.TXT".
. 2011-08-17 13:36:42.968 Retrieving directory listing...
> 2011-08-17 13:36:42.968 CWD /cameron/systems design/
< 2011-08-17 13:36:42.984 250 CWD command successful.
> 2011-08-17 13:36:42.984 PWD
< 2011-08-17 13:36:43.000 257 "/cameron/systems design" is current directory.
> 2011-08-17 13:36:43.000 TYPE A
< 2011-08-17 13:36:43.031 200 Type set to A.
> 2011-08-17 13:36:43.031 PASV
< 2011-08-17 13:36:43.046 227 Entering Passive Mode (10,8,6,126,19,138).
> 2011-08-17 13:36:43.046 LIST -a
< 2011-08-17 13:36:43.062 150 Opening ASCII mode data connection.
. 2011-08-17 13:36:58.562 Timeout detected.
. 2011-08-17 13:36:58.562 Could not retrieve directory listing