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

starhu

Re: Bat file Console : password contains double quote -> error Too many parameters for command 'open'

Thank you Martin,
I generated the script and it works well!
martin

Re: Bat file Console : password contains double quote -> error Too many parameters for command 'open'

There are two double quotes in your password. Are both parts of the password? Or just one of them?
If both, the code should be:
"open ftp://abc.def.com:""KfrHx84!95%""@def.com/"

See https://winscp.net/eng/docs/commandline#syntax
Alternatively, you can URL-encode the quote:
https://winscp.net/eng/docs/session_url#special
(what you should do with the percent sign too)

The easiest is to have WinSCP GUI generate the script for you:
https://winscp.net/eng/docs/ui_generateurl#script
starhu

Bat file Console : password contains double quote -> error Too many parameters for command 'open'

Hello,

My FTP password contains double quote and WinSCP gives error
Too many parameters for command 'open'

The script is like this:
d:\WindowsPrgUp\WinSCP\winscp.com /command "open ftp://abc.def.com:"KfrHx84!95%"@def.com/" "put  c:\MyFolder\xyz\_ExeOutPut\rtz.exe /update/customers/rtz.exe"

What can I do? I tried one more double code, surrounding the password with quotes but it didn't work. Thank you for your help!