Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foldername List

Status
Not open for further replies.

ausssie

Programmer
Joined
Mar 10, 2004
Messages
2
Location
BE
Hello people,

I'm trying to send a .txt file to different folders which i don't know the name of.
all the folders are located in a map c:\map\ ,the names of the folders in it are made like this: YYYY_MM_DD_HH_MM_SS
example:
2004_03_11_09_30_01.
I would like to have a list of these foldernames in an array or .txt file.
How can I do this.

tnx =)
 
Use FindFirst/FindNext/FindClose. Dont forget to discard the '.' and '..' entries. The Delphi help have some examples.

Or use the trick one of my pupils produced: shell a "dir /ad > list.txt" and pick up the list from the txt file. BTW, I rejected his work and commanded him to make it anew. :) :) :)

buho (A).


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top