dim Dcount%, Fcount% 'creates 2 integer variablesdim FilesArr$(100), DirArr$(100) 'creates 2 string arraysrem LOOP #1REM Find all directories in the Samples folderDcount = 1DirArr(Dcount) = FINDFIRSTFOLDER("D:\Corel\Ventura\Samples\*", 16 or 128)WHILE (DirArr(Dcount) <> "")MESSAGE DirArr(Dcount)IF DirArr(Dcount) <> "." AND DirArr(Dcount) <> ".." THEN Dcount = Dcount + 1DirArr(Dcount) = FINDNEXTFOLDER()WENDrem LOOP #2REM Find all *.vp files in each Directory found in earlier loopDIM i%Fcount = 1FOR i% = 1 TO Dcount-1FilesArr(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 + 1FilesArr(Fcount) = FINDNEXTFOLDER()WENDNEXT i%