Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

walk down a folder structure recursively

Posted on 1998-05-27
2
Medium Priority
?
182 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 300 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

636 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