Solved

walk down a folder structure recursively

Posted on 1998-05-27
2
179 Views
Last Modified: 2010-04-06
Is there somewhere a component or an object pascal exemple, which helps
me to walk down a folder structure recursively? I would like to notice
each filename and foldername (inc. date) found in this structure for later usage.

Any hint is welcome !
0
Comment
Question by:rjufer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
d003303 earned 100 total points
ID: 1348049
Yo,
create a recursive function in your main function that adds e.g. the complete path with filename to a list.
A quick flow-example without syntax warranty:

procedure RecurseDirs(Dir : string; List : TStringList);
 procedure Recurse(ADir : string);
 begin
   ( FindFirst/FindNext loop stuff )
   ( check if file is a directory )
   ( if yes, call Recurse(ADir + '\DirName') )
   ( if no, add file to list )
   ( end of loop )
 end;
begin
  Recurse(Dir);
end;

Slash/d003303
0
 

Author Comment

by:rjufer
ID: 1348050
Thanks very mutch.

Rolf
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question