Re: connection problems with ActiveX demo - WeOnlyDo Discussion board

Re: connection problems with ActiveX demo (General questions)

by wodDrazen, Tuesday, July 11, 2006, 23:43 (6710 days ago) @ Patrick Rock

Patrick,


Here is example how you need to use wodFtpDLX to get content of files and folders from server :

-----------------------------------------
dlx1=CREATEOBJECT('WeOnlyDo.wodFtpDLXCom.1')

dlx1.HostName = 'your_hostname'
dlx1.Protocol = 1
dlx1.Port = 22
dlx1.Login = 'your_login'
dlx1.Password = 'your_password'
dlx1.Blocking = .t.
dlx1.Timeout = 60
dlx1.Connect()

dlx1.ListDir ('/home/something')

For i = 0 To dlx1.DirItems.Count - 1
? (dlx1.DirItems.Item(i).Name)
Next i
-----------------------------------------

Hope this helps


Regards,
Drazen


Complete thread: