Too many parameters for command 'open'

Advertisement

psquittieri
Guest

Too many parameters for command 'open'

winscp.com /command  "open sftp://user:password@domain.com/ -hostkey=`"`"ssh-ed25519 255 /XXXXXXXXXXXXXXXXXXX`"`" -rawsettings Shell=`"`"sudo%20su%20-`"`"" ` "put C:\scripts\Report.html /var/www/server/public/attachments/" "exit"

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,984
Location:
Prague, Czechia

Re: Too many parameters for command 'open'

Can you give us some context? What you have is a PowerShell syntax. Are you executing this from PowerShell? I do not get any error when I execute your command in PowerShell. Maybe you are executing this in a batchfile/cmd. There I get the error. In batchfile/cmd, the ` should not be there (backticks are PowerShell escape characters)

Reply with quote

Advertisement

You can post new topics in this forum