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

Guest

this %28%26%2a password was present in my batch script.
can you please let me know how to know original password
martin

Re: Password Batch

It's only guess, as the log file is not complete: In Windows batch file the % sign has a special meaning. Particularly the %2 is replaced with the second argument of the batch file. So the %2 never makes it to WinSCP. You need to escape the % by doubling it to %%2B9lz3-MN.

See https://winscp.net/eng/docs/faq_batch_file#percent
Michale

Password Batch

Hello
I cant connect to a sftp through a bat file
apparently the password does not get recognized because it has some special characters

original password: +9lz3-MN
encoded password: %2B9lz3-MN

Batch File contains the following:
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log="C:\WinSCP.log" /ini=nul /command "option batch continue" "option confirm off" "open sftp://<username>:%2B9lz3-MN/ -hostkey=""ssh-rsa 2048 xxx""" "option transfer binary" "synchronize local C:\ /Info/" "exit"

I'm getting the following log errors: