I need to put in a database the name of the directory of a part of the C drive .
I only need the directory and sub directory, not the files
How to ?
Thanks
function SubFolders( cfolder )
local aSubFolders := {}
local n
local aDir := Directory( cFolder + '\*.*', 'D' )
for n := 1 to Len( aDir )
if aDir[ n ][ 5 ] == 'D' .and. Left( aDir[ n ][ 1 ], 1 ) != '.'
AAdd( aSubFolders, aDir[ n ][ 1 ] )
endif
next
return aSubFolders
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 53 guests