FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Process all files in directory and sub directories SOLVED!
Posts: 65
Joined: Fri Feb 13, 2009 12:03 PM
Process all files in directory and sub directories SOLVED!
Posted: 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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Process all files in directory and sub directories
Posted: Fri May 10, 2019 12:00 PM
Code (fw): Select all Collapse
aDir := DIRECORYRECURSE( "c:\fwh\*.prg" )
Regards



G. N. Rao.

Hyderabad, India
Posts: 65
Joined: Fri Feb 13, 2009 12:03 PM
Re: Process all files in directory and sub directories
Posted: Wed May 15, 2019 10:08 AM

Hi Rao,

Great! Many thanks!

ryugarai27
FWH1706 + xHarbour 1.2.3 + PellesC

Continue the discussion