Code: Alles auswählen
Procedure Scan(Pfad$)
liste$ =OpenFileRequester("Title", "C.\", "Alle Dateien (*.*)", 0)
If ReadFile(0, liste$)
NewList SL.s()
While Not Eof(0)
AddElement(SL())
SL() = ReadString(0)
Debug SL()
Wend
CloseFile(0)
End
EndIf
EDID = ExamineDirectory(#PB_Any,Pfad$,"*.*")
If EDID
While NextDirectoryEntry(EDID)
Entryname$ = DirectoryEntryName(EDID)
If DirectoryEntryType(EDID) = #PB_DirectoryEntry_Directory And Not Entryname$ = "." And Not Entryname$ = ".."
Scan(Pfad$+"\"+Entryname$)
ElseIf DirectoryEntryType(EDID) = #PB_DirectoryEntry_File And Not Entryname$ = "." And Not Entryname$ = ".."
ForEach SL()
If SL() = Entryname$
Debug "Found "+Entryname$
EndIf
Next
EndIf
Wend
FinishDirectory(EDID)
EndIf
EndProcedure
Pfad$ = PathRequester("Verzeichnis angeben...", "C:\")
Scan(Pfad$)