Error code 5 Request code 7 on get
I am trying to script WinSCP to get a file from a SFTP server. I intend to place it in a scheduled task on WinXP SP3. Here's my script file, with the user, pass and server replaced:
option batch on
option confirm off
option echo on
option transfer binary
open user:pass@sftp.server.com
get warning.txt c:\
# close
# exit
Here's the result of my get command:
winscp> get warning.txt
get warning.txt
Can't get attributes of file 'warning.txt'.
Bad message (badly formatted packet or protocol incompatibility).
Error code: 5
Error message from server (en): The handle is invalid.
Request code: 7
winscp>
Can someone please help me? I don't see what I'm doing wrong.
Thanks very much in advance.
option batch on
option confirm off
option echo on
option transfer binary
open user:pass@sftp.server.com
get warning.txt c:\
# close
# exit
Here's the result of my get command:
winscp> get warning.txt
get warning.txt
Can't get attributes of file 'warning.txt'.
Bad message (badly formatted packet or protocol incompatibility).
Error code: 5
Error message from server (en): The handle is invalid.
Request code: 7
winscp>
Can someone please help me? I don't see what I'm doing wrong.
Thanks very much in advance.