> << The List argument is taken for HostFileName. What is done with the > argument is totally under server's control.>> > > But I'm trying to retrieve a list of filenames from the ftp server, not > just > one "HostFileName."
If you set HostFileName property to an empty string, you'll get the complete directory. If you set "*.txt", it is likely that you'll receive all txt files. You've got the idea... > And there is no file on the server that contains a > listing of files itself (such as an "Index.html" or whatever). No need. The FTP server build the directory list on the fly according to the argument you supply. Please experience with any FTP utility (Windows command line or ICS FtpTst sample are perfect). > I need to beable to specify a directory name on the server, and get a > listing of all the > filenames under that directory. Is that possible with ICS/List? Of course. As I said in my previous message, you first need to change the current directory on the FTP server to whatever directory you want using the cwd() method. Then get the file list using the ls() or List() command. > Or should I > use the Directory() method instead? (My understanding is that Directory() > is > used to retrieve a listing of directory names, not a list of files within > a > directory). Use FtpTst sample program to better understand what the commands are doing. You get edit boxes to enter data and a button for most of the commands. > <<Usually it select which files are listed (for example *.txt). The > directory to which the list command applies is the current working > directory > you can change using the cwd() method.>> > > The CWD Boolean function does not take any arguments. The method doesn't take any argument. You forget you are using a COMPONENT not a library. A component has methods (functions and procedure) as you have discovered. But it also has properties and events. > Does this mean that it changes the working directory to what you > have assigned to the HostDirName property? You've got it ! > I thought setting HostDirName would be all that was needed... Use FtpTst sample program to better understand what the commands are doing. You get edit boxes to enter data and a button for most of the commands. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be