Hi kawawong, welcome b4ppc forum!
Not totally sure what you are after, but 'filesearch' statement may help.
Example:
Code:
'first create control arraylist al1 on the form.
FileSearch(al1,AppPath,"*.exe") 'gather all exe files from application directory and assign file list to arraylist 'al1'.
'you can display each file names excluding file path something like:
For i = 0 To al1.count-1
Msgbox(SubString (al1.item(i), StrLength(AppPath)+1,StrLength(al1.item(i))+1-StrLength(AppPath)))
Next
Regards,