Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

creating application ftp auto downloading

0 views
Skip to first unread message

MONGEOT SARL

unread,
May 21, 2002, 1:07:47 PM5/21/02
to
how can one make for accèder has a waiter ftp and to download of the files
automatically without posting message has the screen???

what composants can I use and where can I download those ???

Thanks


Gardner Lloyd Bickford III

unread,
May 21, 2002, 5:35:20 PM5/21/02
to
If you want to add FTP functionality to your application then download Indy
from http://www.nevrona.com/Indy/

You can use Indy to download files without showing any messages to the user.

J'espère ceci aide.

Gardner

MONGEOT SARL

unread,
May 22, 2002, 3:39:52 AM5/22/02
to
Have you an example ???

Thanks
"Gardner Lloyd Bickford III" <Gar...@TriAxialData.com> a écrit dans le
message news: 3CEABD98...@TriAxialData.com...

Don Siders [Team Indy]

unread,
May 22, 2002, 5:49:44 AM5/22/02
to

"MONGEOT SARL" <mon...@fc-net.fr> wrote in message news:3ceb4e1b_2@dnews...

> Have you an example ???

var AFtp: TIdFTP;
..

AFtp := TIdFTP.Create(Nil);

with AFtp do
begin
Host := 'ftp.acme.org';
Username := 'jdoe';
Password := 'secret';

Connect;
Get('/pub/path/filename.ext', 'c:\path\filename.ext');
Quit;
end;

AFtp.Free;

You need to include some exception handling, but that's basically it.

hth...
--
Don


Posted by ELKNews 1.0.4-B
Empower your News Reader! http://www.atozedsoftware.com

MONGEOT SARL

unread,
May 22, 2002, 5:46:57 AM5/22/02
to
how is it possible to be able to manage the errors of connections or others
on component without no message being posted has the screen???

Thanks


"Don Siders [Team Indy]" <sid...@att.net> a écrit dans le message news:
0A28ACC5C74...@att.net...

Andy M.

unread,
May 22, 2002, 4:27:37 PM5/22/02
to
put the part in a try..except block.

try
IndyFTP.Connect;
except
// Here you can do whatever you want to inform the user of the error
end;

This will prevent Windows from showing the standard error message.
Note, that if you run your program from within Delphi, you will still see an
error message unless you uncheck "Stop at Delphi exceptions" at
Options/Debugger/Language exceptions.

Andy

--
Kyoto Now !


0 new messages