| Name | Type | Description |
|---|---|---|
| SearchCriteria |
String
|
|
| Attributes |
Long
|
dim Dcount%, Fcount% 'creates 2 integer variables dim FilesArr$(100), DirArr$(100) 'creates 2 string arrays rem LOOP #1 REM Find all directories in the Samples folder Dcount = 1 DirArr(Dcount) = FINDFIRSTFOLDER("D:\Corel\Ventura\Samples\*", 16 or 128) WHILE (DirArr(Dcount) <> "") MESSAGE DirArr(Dcount) IF DirArr(Dcount) <> "." AND DirArr(Dcount) <> ".." THEN Dcount = Dcount + 1 DirArr(Dcount) = FINDNEXTFOLDER() WEND rem LOOP #2 REM Find all *.vp files in each Directory found in earlier loop DIM i% Fcount = 1 FOR i% = 1 TO Dcount-1 FilesArr(Fcount) = FINDFIRSTFOLDER("D:\Corel\Ventura\Samples\" + DirArr(i%) + "\*.vp", 1 or 2 or 4 or 32 or 128) WHILE (FilesArr(Fcount) <> "" ) MESSAGE DirArr(i%) & CHR(13) & FilesArr(Fcount) Fcount = Fcount + 1 FilesArr(Fcount) = FINDNEXTFOLDER() WEND NEXT i%