Posted: 2015-10-23 20:37
I am trying to create a bat file that can invoke WinSCP to download and upload the file on SFTP site.
Below is my code
option batch abort
option confirm off
option transfer binary
open sftp://USER:Pass1234@example.com -privatekey=C:\temp\SFTP\Auth.ppk
Batch file code: Auto_Batch.bat
When I try to execute the batch file from the command prompt it prompts me to enter the password. I enter the same password I gave in the open command marked in bold above.
Can you please suggest me something.
Location: Prague, Czechia
I assume (as you are using a private key), that the
The passphrase is specified using
Posted: 2015-10-26 13:35
Thanks a lot!!! it worked for me.
You can post new topics in this forum
And it's free!