Code: Alles auswählen
; ----------------------------------------
Procedure ListFiles(EntryPath.s)
EntryPath + "\"
UsedDirectory = ExamineDirectory(#PB_Any, EntryPath, "*.*")
Repeat: UseDirectory(UsedDirectory)
EntryType.l = NextDirectoryEntry(): If EntryType = 0: Break: EndIf
EntryName.s = DirectoryEntryName()
If EntryName = "." Or EntryName = "..": Continue: EndIf
If EntryType = 1: Debug "File: " + EntryPath + EntryName: EndIf
If EntryType = 2: ListFiles(EntryPath + EntryName): EndIf
ForEver
EndProcedure
; ----------------------------------------
ListFiles("c:\windows")