Does the wildcard in the filename really leads to QlikView scanning all subfolders?
Not sure about that.
But using a FOR EACH vFile IN FILELIST(*.htm) ...NEXT
should only scan the working directory.
Looked again at FOR EACH... NEXT approaches I looked at before posting originally. My issue was not commenting out the 'for each Dir...' which not surprisingly recursively looped through all subdirectories. <sigh!>
Thanks swuehl for the response.
sub DoDir (Root)
for each Ext in 'htm'
for each File in filelist (Root&'\*.' &Ext)
'$(File)' as Name,
SubField ('$(File)', chr(92), -1) as NameNoPath,
FileSize( '$(File)' ) as Size,
FileTime( '$(File)' ) as FileTime
/* for each Dir in dirlist (Root&'\*' )
call DoDir (Dir)
next Dir */
call DoDir ('C:\Dir1\Dir2')