on 2015 Oct 06 12:43 PM
Hi everyone,
I want to upload files on a SFTP Server.
Now i am looking for an easy way to do this. At the Moment we already use the FTP upload with a windows dll. But there is no support for SFTP.
Does anyone know a dll or something else with that we can realize a SFTP upload?
I already found some solutions for example the chilkat_9_5_0.sftp this is a activeX control. So we can use it with an OLE Control.
But I want to know if there are any other and cheaper solutions.
Best regards,
Tom
Request clarification before answering.
WinSCP is a nice tool.
Take a look at it's command line / scripting options and now also the COM options.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can.
Hi,
now I want to use the WinSCP COM but I have a problem.
I get a error at the call of the Open method of the WinSCP.Session.
The error is:
Error calling external object function open at line 24 in function of_winscp of object n_cst_ftp
Can anybody help me?
This is my code:
oleobject loo_sessionOption
oleobject loo_session
loo_sessionOption = create oleobject
loo_session = create oleobject
IF loo_sessionOption.ConnectToNewObject( "WinSCP.SessionOptions" ) < 0 THEN
messageBox ( "Fehler", "COM connect" )
RETURN
END IF
IF loo_session.ConnectToNewObject( "WinSCP.Session" ) < 0 THEN
messageBox ( "Fehler", "COM connect" )
RETURN
END IF
loo_sessionOption.Protocol = 2
loo_sessionOption.HostName = ""
loo_sessionOption.PortNumber = ""
loo_sessionOption.UserName = ""
loo_sessionOption.Password =""
loo_session.Open ( loo_sessionOption )
destroy loo_sessionOption
destroy loo_session
Regards
Tom
Hi Tom;
I believe that SessionOptions ( or what you refer to as loo_sessionOption ) is a custom class ...
FYI: SessionOptions Class :: WinSCP
1) Try wrapping the OLE calls in a TRY..CATCH. I find that the thrown exception reference can contain more useful information about the OLE failure.
2) I would also recommend creating an OLE Ancestor that scripts the error events. This too can provide more useful information about an OLE issue.
HTH
Regards .. Chris
Not so smart but running for us and for free: Run PuTTY - PSFTP from powerbuilder as external application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom;
FWIW: I have used SocketWrench with PowerBuilder for years to support many connectivity requirements ... I believe that it supports Secure FTP as well:
https://sockettools.com/sockettools-library-edition/
HTH
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chris is correct. SocketTools has Secure options built in.
We use the ActiveX edition (ocx controls) in our PB apps (socketwrench, e-mail, dns, e-mail attachments, telnet, https submit). They work well, and the developers behind them are very responsive if you need help getting them to work.
https://sockettools.com/sockettools-activex-edition/
And the licensing is easy too. Pay for the tool once, deploy controls for free.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.