Topic "Script error"

Author Message
[View user's profile]

Joined: 2016-03-03
Posts: 12
Hi, I am struggling to ge this script running. Can someone guide? Thanks.

C:\Program Files (x86)\WinSCP> command ^
More? "option batch abort" ^
More? "option confirm off" ^
More? "open sftp://genesis@ -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.
[View user's profile]

Joined: 2016-03-03
Posts: 12
Got it going. Syntax error. Correct script is as below: /command ^
"option batch abort" ^
"option confirm off" ^
"open sftp://genesis@ -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" ^

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License