PDA

View Full Version : SFTP Scripting?



showstopper
3rd August, 2010, 11:17 AM
Hi guys,

Not sure if this is possible or not but is there anyone out there that is good at automatic sftp scripting.
The main problem i am having is that the location where i need to collect the files i need to use private and public keys so it keeps asking me for the password.
Im pants at scripting and i only have this so far.

option batch on
option confirm off
open "saved profile in winscp"
cd /Inbox
option transfer binary
get *.* c:\Test

The file is located in a folder called inbox in my saved winscp profile.

Any help would be greatly appreciated!

showstopper
5th August, 2010, 10:43 AM
Anyone?
10char

Bobiskey
7th August, 2010, 10:52 AM
Not up on this meself. But this (http://winscp.net/eng/docs/script_commands#open) might point you in right direction.