1
1
I am attempting to use WinSCP.com to pull a file from a mainframe server.
I am able to do this by the DOS FTP command line after logging in:
Get 'A.B.C.MYFILE.TXT' \\mytargetpath\test.txt
This works and the file is transferred.
However, when I try WinSCP from command line with a file containing:
open ftp://name:password@host.com hostkey="ssh-rsa 1024 <<key>>"
Get 'A.B.C.MYFILE.TXT' \\mytargetpath\test.txt
exit
I get errors such as:
Can't get attributes of file ''A.B.C.MYFILE.TXT''. No such file or directory.
I am not sure what is going on here, my assumption was that WinSCP would be using the FTP windows command line client behind the scenes and so the exact same message would work correctly. This is apparently not the case however.
You're probably in the wrong directory. You may need to issue a
cd
command. – LawrenceC – 2015-06-12T17:58:09.110Can you include WinSCP log file? – Martin Prikryl – 2015-06-13T06:43:07.033