Too many parameters for command 'open'.

Advertisement

Jochem
Guest

Too many parameters for command 'open'.

Hi,

I'm trying to upload a file to a sftp server using the following command:

D:\DefactoLMS\WinSCP.com /script=D:\DefactoLMS\commands.dat

The content of the commands.dat file:

open sftp://username@domain.com –privatekey="D:\Send\privat_key.ppk" -passphrase="[mypassphrase]"

option batch abort
option confirm off
put D:\Send\test.txt

exit

I'm using winscp575. If I google the error the only thing I find is that i should use a newer version; but as far as i know this one is the most recent atm.

Please help; thanks already!

Jochem

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Just take a look at your first post. The dash before privatekey is a way longer than the dash before passphrase.

Reply with quote

Advertisement

You can post new topics in this forum