🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #779

C++ Builder 2007 - IdFTP versus List()

#779
From: Dmitri L.
Date: Tue, 06 Nov 2007 12:55
45 lines
1464 bytes
I'm trying to get a detailed list of files from a IIS 6.0 webserver using 
IdFTP (v10.1.5) and C++ Builder 2007. I can't make it work, I''m receiving 
an error.



I'm using the following source:



IdFTP1->Connect();

if(IdFTP1->Connected())

{

try    {

          IdFTP1->TransferType = ftASCII;

          IdFTP(NULL, "", true);
        }

catch(Exception &exception)

        {

           ShowMessage(exception.Message);

        }

}



The error is 'EDivByZero' and the 'ListResult' is empty. I'm not sure what 
to do. Do I need to downgrade to Indy 9?



Thanks in advance for your help!



Dmitri L.
Technical Details
Message-ID: <47306457@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fdcb4b45839737d8,start
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dmitri L." <nospam@nospam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: C++ Builder 2007 - IdFTP versus List()
Date: Tue, 6 Nov 2007 13:55:57 +0100
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.73.89.32
Message-ID: <47306457@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1194353751 82.73.89.32 (6 Nov 2007 04:55:51 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail