Page 1 of 1

Process all files in directory and sub directories SOLVED!

Posted: Fri May 10, 2019 10:44 am
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

Re: Process all files in directory and sub directories

Posted: Fri May 10, 2019 12:00 pm
by nageswaragunupudi

Code: Select all

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

Re: Process all files in directory and sub directories

Posted: Wed May 15, 2019 10:08 am
by ryugarai27
Hi Rao,

Great! Many thanks!

ryugarai27
FWH1706 + xHarbour 1.2.3 + PellesC