> I tried to do it with an older version of ICS which supports D5. Current ICS-V5 support Delphi 5. Use that version, not an old one ! Download now from http://www.overbyte.be.
ICS-V6, still in beta, will not support D5 anymore. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "Kochendoerfer, Michael" <[EMAIL PROTECTED]> To: <firstname.lastname@example.org> Sent: Tuesday, January 30, 2007 4:10 PM Subject: [twsocket] Problem with ftp and (legacy) ICS > Hi, > > since I've to write a small ftp transfer program to transfer just single > files in D5, I tried to do it with an older version of ICS which supports > D5. Uploading files to a ftp server is fine but not downloading. Status > tells me that the file transfer is complete (226 Transfer complete), but > the file is nowhere on the local harddisk. > > This is my very simple procedure: > > try > with ftpCli do begin > HostName := '172.18.10.40'; > UserName := 'anonymous'; > Password := 'gimmedafile'; > LocalFileName := 'd:\410.jpg'; > HostDirName := '/'; > HostFileName := '410.jpg'; > > Receive; > Quit; > end; > except > on E: Exception do meLog.Lines.Add('*** ' + E.ClassName + ': ' + > E.Message); > end; > > What am I doing wrong? Have I to save the file for myself after it has > been transferred? Or is the above syntax wrong for dirs and files? > However, uploading works the same way except for the Receive() - upload > calls Transfer() instead. > > TIA > Michael > > -- > 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 -- 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