Enumearte Files in a Folder

Here is an example of AutoScript about enumerating the files that exist in a folder.

filder = "c:\my files"
files  = "*.mdb"
flist   = GetFileNames(folder,files)                {....load the file names into a list}
fcount  = GetLstCount(tlist)                         {....enumerate the items in the list (files)} 
for i = 0 to fcount-1
name = GetLstItem(flist,i)                     {....get fable name of (i)th list item}
call trace("fname=",fname)                     {....write to kosmos*.log for latter inspection}
call FreeLst(flist)                                         {....free the list with fable names}