Just take a look at your first post. The dash before
privatekey
is a way longer than the dash before passphrase
.
privatekey
is a way longer than the dash before passphrase
.
privatekey
is not a plain "hyphen-minus" sign as it should be, but an "en dash" character:
D:\DefactoLMS\WinSCP.com /script=D:\DefactoLMS\commands.dat
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