Posted: 2011-12-09 21:19
I am creating a simple script to download some files from an SFTP server. I need to automate this so will use Windows for that. How do I input the password for the SFTP server? I always getting prompted when I run the .bat which just calls the .txt file.
open <Session Name>
synchronize local "C:\SFTPtest" "/"
C:\Progra~2\WinSCP\WINSCP.exe /console /script=run.txt
It works, just prompts me for the password everytime. I also have the option of Private key and passphrase...how can I script that? New to all this.
Location: Prague, Czechia
I have added a note on automatic login to open command page:
You can post new topics in this forum
And it's free!