Save this code to a .bb file, and put it in a folder with some images in it. Then run it with debug on.
scanfolder(CurrentDir$()) Function ScanFolder(Path$) Dir = ReadDir(Path$) Repeat File$ = NextFile(Dir) If File$ = "" Then Exit If IsGraphicsFile(Path$+File$) = True ;SHOW IMAGE ETC DebugLog File$ EndIf Forever End Function Function IsGraphicsFile(File$) file$ = Lower$(file$) ext$ = Right$(file$,3) If ext$ = "jpg" Or ext$ = "png" Or ext$ = "tga" Or ext$ = "bmp" Return True EndIf End Function