Process all files in directory and sub directories SOLVED!

Process all files in directory and sub directories SOLVED!

Postby ryugarai27 » Fri May 10, 2019 10:44 am

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
ryugarai27
 
Posts: 65
Joined: Fri Feb 13, 2009 12:03 pm
Location: Manila, Philippines

Re: Process all files in directory and sub directories

Postby nageswaragunupudi » Fri May 10, 2019 12:00 pm

Code: Select all  Expand view
aDir := DIRECORYRECURSE( "c:\fwh\*.prg" )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10295
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Process all files in directory and sub directories

Postby ryugarai27 » Wed May 15, 2019 10:08 am

Hi Rao,

Great! Many thanks!

ryugarai27
FWH1706 + xHarbour 1.2.3 + PellesC
User avatar
ryugarai27
 
Posts: 65
Joined: Fri Feb 13, 2009 12:03 pm
Location: Manila, Philippines


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 34 guests