🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9894

Re: List of all directories and sub-directories

#9894
From: Andrue Cope
Date: Thu, 03 Jun 2004 08:37
22 lines
1551 bytes
On Thu, 03 Jun 2004 09:36:06 +0200, Christophe Minetti wrote:

> I try to write a program that gives me a list of all directories and
> sub-directories of a disk.

To obtain a list in memory use FindFirst/FindNext.

If you want to display a tree on screen you can either combine the above
code with a TTreeList.

> I have tried with a TDirectoryListBox but I do not have the 
> sub-directories.

Could you elaborate on that, please? If TDirectoryListBox is not showing
subdirectories then something is wrong since that's the whole point of the
component.

If you are after an explorer-style tree then Google for "VCL directory tree
component" without the quotes.
-- 
Andrue Cope
[Bicester UK]
Technical Details
Message-ID: <djyb8bopup74.1ri310svxh1sm$.dlg@40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40BED4E6.8117329B@ulb.ac.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,33c629e33aea5d79
X-Google-Attributes: gid10cc67,public
From: Andrue Cope <no.spam@spammy.com>
Subject: Re: List of all directories and sub-directories
Newsgroups: borland.public.cppbuilder.nativeapi
User-Agent: 40tude_Dialog/2.0.12.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <40BED4E6.8117329B@ulb.ac.be>
Date: Thu, 3 Jun 2004 09:37:31 +0100
Message-ID: <djyb8bopup74.1ri310svxh1sm$.dlg@40tude.net>
NNTP-Posting-Host: 217.207.223.34
X-Trace: newsgroups.borland.com 1086251940 217.207.223.34 (3 Jun 2004 01:39:00 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail