Error Calling External Object using Putfile (wodSFTP / wodSFTP.NET / wodSFTPdll)
I've got a powerbuilder program
and I'm getting an error when trying to call putfile.
I've seen this problem reported before... but, couldn't see how it got fixed
below is my code
I'm trying to create a key file, and transmit it using login /password
ole_cer = CREATE oleobject
ole_cer.ConnectToNewObject( WeOnlyDo.Certificate.1 )
ole_cer.generatekey(0)
f_path = 'C:' + d_code + '.txt'
ole_cer.savekey(f_path)
//ole_ftp.LicenseKey =
ole_ftp.object.hostname = ftp_site
ole_ftp.object.login = ftp_acc
ole_ftp.object.password = ftp_pass
ole_ftp.object.authentication = 1
ole_ftp.object.transfermode = 0
ole_ftp.object.blocking = 1
ole_ftp.object.protocol = 1
ole_ftp.object.compression = 6
ole_ftp.object.passive = 1
ole_ftp.object.port = 22
p_state = 1
f_list = cuser_directory+'JS11_SEND*.*'
counter = 0
counter_tot = 0
ole_ftp.object.connect()
ole_ftp.object.remotepath='/sstyer/'
messagebox('error',f_path)
ole_ftp.object.putfile('c:0755.txt',ole_ftp.object.remotepath)
ole_ftp.object.disconnect()
Complete thread:
- Error Calling External Object using Putfile - ScotS, 2011-11-15, 18:03
- Re: Error Calling External Object using Putfile - wodDamir, 2011-11-15, 18:08
- Re: Error Calling External Object using Putfile - Scots, 2011-11-15, 18:17
- Re: Error Calling External Object using Putfile - wodDamir, 2011-11-15, 18:08