Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: FTP a File
| Subject: | Re: FTP a File |
| Posted by: | "Barry Wood" (bar..@amss.uk.com) |
| Date: | Thu, 4 May 2006 08:42:17 |
Remy
Many thanks for that. I tried this code (I added the password parameter as
well), but I keep getting ' Identity not known'. I'm sure the host name &
password are correct, could it be something else not set correctly do you
think?
PS I 've set binary & passive mode (as that is what my other ftp program has
setup)..
Barry
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:4458f9bb@newsgroups.borland.com...
>
> "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