> However, does anyone have a small sample of code to retrieve a > directory, and - for example - place the contents into a listbox?
You need to parse the directory listing returned, there are two common formats and several more less common. There are some functions at http://www.smatters.com/ics/ that will parse such directories into string lists, although there are some bugs. Or you can use my high level FTP TMagFtp component, which includes all the directory handling stuff and will download files only after checking they are newer, automatically. There's an example that shows how to list a directory, and it's subdirectories (which is much harder). The compiled version is free from: http://www.magsys.co.uk/delphi/magxfer.asp The source is available free to ICS SSL contributors, from the SSL download page. Angus -- 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