Transfering file(s) from sftp server to local

Hi to all,

I need some good suggestions/advice on this minor issue.

What I need is to transfer files from a sftp server to local computer and I think I need to do this with help of scripts in Bodi. In order to do this I need suggestions on how to write a script.

Connection is checked with WinSCP and is ok, and I am running on Bods 3.1.

In Bods I tried with the following script:

#$LV_Result = exec(‘C:\Program Files (x86)\WinSCP\WinSCP.exe’,‘Files\FTPConfig\connection.txt’,0);

In the “connection.txt” I wrote:

open sftp://195.160.160.160:22
fun
fun
lcd C:\Documents\Files\DataFiles\Customer_files
quit
return 0

I don’t receive any error messages but neither do I get the files. It feels like Bods opens up the connection but dosen’t extract the files. I might be totally wrong on this but please give me some advice.

best regards
R


Bikern (BOB member since 2011-01-10)