1. Gary Privette
  2. PowerBuilder
  3. Tuesday, 22 June 2021 20:28 PM UTC

I'm looking for an "easy" way for PowerBuilder to perform a secure file copy from the local client computer to a server  folder (and copy from server to local computer), by providing a user/password, certificate, etc. that will be recognized by the server.  I don't want to use a share on the server due to the quantity of users and maintenance involved.  I don't want to have to install any software on the client computers.  I don't need to incorporate encryption.  Any ideas?  Thank you.

Accepted Answer
Mark Goldsmith Accepted Answer Pending Moderation
  1. Wednesday, 23 June 2021 19:53 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Gary,

In addition to using WinSCP via an assembly and C#, WinSCP is also COM enabled and so you can also do something like the following:

Integer li_rc

oleobject iole_winscp_ftp
iole_winscp_ftp = create oleobject
li_rc = iole_winscp_ftp.ConnectToNewObject("WinSCP.Session")

//Begin file transfer code...


//End file transfer code.

Destroy iole_winscp_ftp

If going the COM route just remember to register the DLL via something like the following:

regasm winscpnet.dll /codebase /tlb

HTH...regards,

Mark

Comment
  1. Gary Privette
  2. Wednesday, 23 June 2021 21:39 PM UTC
Thank you for pointing out the COM option. I didn't know about that. I don't know which way I will go with it yet. I will probably try it both ways, also taking into consideration the deployment requirements.

-Gary
  1. Helpful
  1. Mark Goldsmith
  2. Wednesday, 23 June 2021 23:19 PM UTC
You're welcome Gary and best of luck whichever way you choose to go.
  1. Helpful
There are no comments made yet.
Gary Privette Accepted Answer Pending Moderation
  1. Tuesday, 22 June 2021 21:06 PM UTC
  2. PowerBuilder
  3. # 1

Thank you, Chris!  I appreciate the prompt reply.  I really don't know the best way to do it, but I thought I might end up using sftp.  I was hoping not to have to buy anything, but I am looking at all options.  Getting purchase orders and vendors approved is quite a process.  We already use WinSCP for GUI and command line sftp, and I found that they have an assembly that I might try with C#.  I already have created a .NET assembly with Visual Studio involved in this process, so I should able to incorporate it there.  It is free.  Do you want me to let you know how it goes?

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 23 June 2021 14:13 PM UTC
Hi Gary;

"Kool" ... please let us know how you make out with that product for SFTP use.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 June 2021 20:50 PM UTC
  2. PowerBuilder
  3. # 2

Hi Gary;

  I am assuming that you want to use SFTP for this ...  Here are a few suggestions:

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.