Too many parameters for command open

Advertisement

SRK
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

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
_________________
Martin Prikryl

Reply with quote

Achmad
Guest

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum