Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

Re: winscp beta4 scripting broke?

Do you use private key for authentication?
Guest

winscp beta4 scripting broke?

Hi,

I've following script, that works perfectly with winscp3, but fails with winscp4 beta. As workaround I just downgraded back to version 3.

Script (winscp.txt):

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
open myself@foo.bar.ee
cd /var/www/aaa/bbb/ccc
option transfer binary
put ddd.exe
close
exit

command-line:
"C:\Program Files\WinSCP3\WinSCP.com" /console /script="winscp.txt"

output:
batch on
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "myself".
Invalid access to memory
Authentication log (see session log for details):
Using username "myself".

Authentication failed.
No session.
transfer binary
No session.
No session.