Autor Beitrag
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Do 19.01.06 20:18 
Hallo!

Ich suche mit der Funktion von Tino nach Dateien (www.delphi-library.d...;highlight=findfirst)..

Nun ist mir aufgefallen, dass ich keine Ordner durchsuchen kann, die leerzeichen enthalten.

Wollte mal fragen ob er da Möglichkeiten gibt.
Und ist zwar nicht so wichtig, aber vielleicht noch um versteckte Dateien nicht mit einzubeziehen :)

greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
wolke
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 240



BeitragVerfasst: Fr 20.01.06 03:24 
sollte er aber eigentlich machen...?

schau dir mal die attribute an (z.b. in der hilfe), speziell hier: FindFirst (aPath + aFindMask, faAnyFile, FindRec) das faAnyFile, dann ist das mit versteckten auch kein problem mehr.
Born-to-Frag Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Fr 20.01.06 20:36 
Also nach Dateien suchen in Ordnern mit Leerzeichen geht bei mir nicht, und eine suchbegrenzung geht auch nicht :cry:

Ich kann nur *.* angeben, was anderes wie *.exe geht nicht?!


greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
wolke
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 240



BeitragVerfasst: Sa 21.01.06 16:32 
seltsam, sollte wirklich gehen. als aPath halt den pfad, als aFindMask beispielsweise *.exe.
Born-to-Frag Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mi 25.01.06 17:28 
Hast du es denn schon mal mit der funktion von Tino getestet?

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 25.01.06 18:38 
Ich weiß nicht was Du hast, funktioniert doch einwandfrei !
ausblenden Delphi-Quelltext
1:
FindFiles ('C:\Ordner mit Leerzeichen', '*.exe', True, ListBox1.Items);					
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 25.01.06 18:44 
Hallo,
hab es auch gerade mit:
ausblenden Delphi-Quelltext
1:
FindFiles('E:\Delphi Tipps','*.*t*', True, ListBox1.Items);					

getestet, findet alle *.htm,*.html,*.rtf,*.txt aber keine *.pas,
genauso wie es sein soll.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )