Einzelnen Beitrag anzeigen

neo4a

Registriert seit: 22. Jan 2007
Ort: Ingolstadt
362 Beiträge
 
Delphi XE2 Architect
 
#4

Re: Ordner rekursiv durchsuchen bis zu maximaler Tiefe

  Alt 28. Dez 2009, 08:12
Die Komponente TFindFile sollte das bieten, was Du suchst. Hier kannst Du nicht nur mit dem Parameter "Filters" schon vieles erschlagen:
Zitat:
>*delphi* Includes all files that contain 'delphi' in their full path
>\\Server\*.txt Includes all text files on computer named 'Server'
C:\Windows\*\*.txt Excludes all text files in the second level subfolders of 'C:\Windows' directory
>*\src\*.txt Includes all text files in 'src' subfolder of any folder of any drive and network location
?:*\lib\*.txt Excludes all text files in 'lib' subfolder of any folder of any drive
?*\readme.txt Excludes all readme.txt files
sondern auch diese Parameter dürften Dir gefallen:

Zitat:
# MinLevel: Word
Determines the minimum directory level from the base folder for the target files. Set this property to zero if you do not need this feature.
To know how to set MinLevel on every individual folder see Folder Meta Parameters.
# MaxLevel: Word
Determines the maximum directory level from the base folder for the target files. Set this property to zero if you do not need this feature.
To know how to set MinLevel on every individual folder see Folder Meta Parameters.
weil sich damit die Suchtiefen beeinflussen lassen. Ach, und Inhalte-Suche geht wohl auch.

--
Andreas
Andreas
  Mit Zitat antworten Zitat