Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: FTP a File

www.cryer.info
Managed Newsgroup Archive

Re: FTP a File

Subject:Re: FTP a File
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 3 May 2006 11:40:36

"Barry Wood" <Barry@AMSS.uk.com> wrote in message
news:4458efa4@newsgroups.borland.com...

> Being pretty new to ftp'ing I get confused with all the stuff that's
> available. I need to start with a simple example and then I can work from
> there.

If you use Indy, then use the TIdFTP component, ie:

    IdFTP1.Host = 'whatever';
    IdFTP1.Port := 21;
    IdFTP1.Connect;
    try
        IdFTP1.ChangeDir('/whatever');
        IdFTP1.Put('c:\localfolder\file.ext', 'file.ext');
    finally
        IdFTP1.Disconnect;
    end;


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive