File Upload/Download SFTP/FTPS

Post your tools and samples or ask for them.
EwaldP
Austria
Posts: 41
Joined: 07 Mar 2017, 08:00
Location: Austria

File Upload/Download SFTP/FTPS

Post by EwaldP » 11 Oct 2017, 06:53

Hi,

- has anybody experience with up/downloading files via sftp/ftps?
- do you use 3rd party tools?
- is there something I have to care for?

Thank you.

Best regards
Ewald
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 263
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: File Upload/Download SFTP/FTPS

Post by Dave Rabelink » 11 Oct 2017, 07:20

Do you mean programatically?
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

clemdoc
Austria
Posts: 4
Joined: 08 Mar 2017, 09:51
Location: Austria

Re: File Upload/Download SFTP/FTPS

Post by clemdoc » 11 Oct 2017, 08:45

Hi,

I have used SSH.NET with C# and that worked pretty well. You could write an assembly with your required classes and create a COM Wrapper to use it with Team Developer. Regarding the latter, you should be able to find everything you need either in this forum or on the TDWiki.

hth, clem

EwaldP
Austria
Posts: 41
Joined: 07 Mar 2017, 08:00
Location: Austria

Re: File Upload/Download SFTP/FTPS

Post by EwaldP » 11 Oct 2017, 11:59

@Dave.
sry for the weak description. Yes, programmatically.

@clemdoc
Thanks
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Harald
Germany
Posts: 1
Joined: 30 Mar 2017, 06:16
Location: Oberhaching/Munich, Germany

Re: File Upload/Download SFTP/FTPS

Post by Harald » 11 Oct 2017, 13:00

Hi Ewald,

I use WinSCP for that. You can start it with a script file.

Call SalLoadAppAndWait( 'WinSCP.exe /script=WinSCPScript_Prod_Downloads.script /log=D:\\LogFiles\\WinSCP\\WinSCP_FTP_Download_Prod_' || SalFmtFormatDateTime( SalDateCurrent( ), 'yyyyMMddhhhhmmss' ) || '.txt', Window_NotVisible, nDummy )

WinSCPScript_Prod_Downloads.script is:


option batch on
option confirm off

open sftp://<user>:<password>@<host> -hostkey="ssh-rsa 1024 <xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx>" -rawsettings ProxyMethod=3 ProxyHost=<ip> ProxyPort=<port>

option transfer automatic

lcd D:\<mydir>
cd /<theirdir>

get *.*

close

exit


Kind regards
Harald

Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 70
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

Re: File Upload/Download SFTP/FTPS

Post by Igor Ivanovic » 12 Oct 2017, 12:29

I'm using wodSFTP (dll version): http://www.weonlydo.com/SFTP/Help/
Not free, but easy to implement.
And there is an ActiveX and .NET version also.
Igor Ivanovic
Image

Return to “Tools & Samples”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests