[Gambas-user] FTPClient

Mr JH Deval johdeval at ...43...
Wed Nov 17 16:34:06 CET 2004


Can someone please post a simple exmaple of the Put
and Get functions within the FTPClient.

Currently I have:

DIM dtUpload AS FtpClient
DIM hFile AS String

  dtUpload = NEW FtpClient

  dtUpload.URL = GetSetting("FTPServer")
  dtUpload.User = GetSetting("FTPUser")
  dtUpload.Password = GetSetting("FTPPass")
  
  FOR EACH hFile IN Dir("/DIRECTORY/")
    dtUpload.Put(hFile)
  NEXT hFile
  
  dtUpload.Stop

I believe this should go through the DIRECTORY and
upload all files. The Problem I am having is the Get
side. I need to do the same thing there but I see no
way of geting the list of Files.


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 





More information about the User mailing list