Process all files in directory and sub directories SOLVED!

Post Reply
User avatar
ryugarai27
Posts: 65
Joined: Fri Feb 13, 2009 12:03 pm
Location: Manila, Philippines
Contact:

Process all files in directory and sub directories SOLVED!

Post by ryugarai27 »

Hi Fivewin Gurus,

I am trying to read and process all text files in a directory and all its subdirectories no matter how deep, but I am unable to create a recursive function to do the task. Any help would be greatly appreciated, many thanks.

ryugarai27
FWH1706 + xHarbour 1.2.3 + PellesC
Last edited by ryugarai27 on Wed May 15, 2019 10:10 am, edited 1 time in total.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Process all files in directory and sub directories

Post by nageswaragunupudi »

Code: Select all

aDir := DIRECORYRECURSE( "c:\fwh\*.prg" )
Regards

G. N. Rao.
Hyderabad, India
User avatar
ryugarai27
Posts: 65
Joined: Fri Feb 13, 2009 12:03 pm
Location: Manila, Philippines
Contact:

Re: Process all files in directory and sub directories

Post by ryugarai27 »

Hi Rao,

Great! Many thanks!

ryugarai27
FWH1706 + xHarbour 1.2.3 + PellesC
Post Reply