Post a reply

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

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

Wauw! How did you find that?!
Jochem

In addition..

If i run the commands directly into cmd; it works like a charm! :o
Jochem

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