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

xtreemnet

Got it going. Syntax error. Correct script is as below:

WinSCP.com /command ^
"option batch abort" ^
"option confirm off" ^
"open sftp://genesis@202.135.116.217/ -hostkey=""ssh-rsa 1024 4e:3a:34:f9:7e:da:f4:7d:2b:7e:f1:bb:5d:c8:c9:2d"" -

privatekey=""D:\New Private key.ppk"" " ^
"put D:\Dest\Test.txt /from-post/Test.txt" ^
"pause"
xtreemnet

Script error

Hi, I am struggling to ge this script running. Can someone guide? Thanks.


C:\Program Files (x86)\WinSCP>WinSCP.com command ^
More? "option batch abort" ^
More? "option confirm off" ^
More? "open sftp://genesis@202.135.116.217:22/ -privatekey = ""D:\New Privae key.ppk"" -hostkey=""ssh-rsa 1024 f1:27:89:f8:55:93:7f:e2:c7:70:06:b1:de:5a:5:92"" " ^
More? "cd /from-post" ^
More? "put D:\Dest\Test.txt" ^
More? "pause"
Opening session using command-line parameter in scripting is deprecated. Use 'open' command instead.
Searching for host...
Host "command" does not exist.
winscp>