ich sag nur _FileListToArray ...
hier mal ein beispiel
[autoit][/autoit][autoit][/autoit][autoit]#Include <File.au3>
#Include <Array.au3>
$filepath = "D:\Data\"
$OST_OSA =_FileListToArray($filepath,"OST_OSA*.sql",1) ; liest alle files mit angfang " "OST_OSA" und ende "sql" in ein array
If @Error= 1 Then
MsgBox (0,"","Path not found or invalid",1)
Exit
EndIf
If @Error= 4 Then
MsgBox (0,"","No Files Found.",1)
Exit
EndIf
_ArrayDisplay($OST_OSA,"$FileList")
For $x = 2 to $OST_OSA[0]
Msgbox(0,'Record:', $OST_OSA[$x],1)
Next
gruß gmmg