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: too many parameters for command "open"

Achmad wrote:

I got the same message when run command as below:
open -explicittls -passive=on ftps://username:passwprd@foo.com:50021 -rawsettings ProxyMethod=3 ProxyHost=proxy.net ProxyPort=8080 ProxyUsername=itdept ProxyPassword=testonly

What version of WnSCP are you using? Make sure you have the latest one.
Achmad

too many parameters for command "open"

Hi,
I got the same message when run command as below:
open -explicittls -passive=on ftps://username:passwprd@foo.com:50021 -rawsettings ProxyMethod=3 ProxyHost=proxy.net ProxyPort=8080 ProxyUsername=itdept ProxyPassword=testonly

Please advise.

Achmad
martin

Re: Too many parameters for command open

It's difficult to help without seeing the full command, but my guess is that you have a space in private key path and you have not enclosed the path to double-quotes.
See https://winscp.net/eng/docs/scripting#syntax
SRK

Too many parameters for command open

Hi,

" Error : Too many parameters for command open "

I am trying to transfer the files using SFTP with Pair Key authorization: Please find the below script as similar to my original script

option batch on
option confirm off
open sftp://<UserName>@<Server> -privatekey=<Private Key>.ppk

I am currently using WinSCP 4.2.8.818(Size: 6.06 MB), I have also read the https://winscp.net/eng/docs/faq_script_switch but didn't find any solution.

Your suggestions/advice will really help us.

Thanks in advance.

SRK