Autor Beitrag
mattl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Mo 07.08.06 07:30 
Gibt es eine Möglichkeit in einem TOpendialog gleich mehrer Ordner auszuwählen und alle darin enthaltenen Dateien zu verwenden
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Di 08.08.06 07:56 
oder ist es möglich dass wenn ich einen Pfad von einem Ordner angebe das dann alle Unterordner dieses Ordners ausgeben werden? (ich kenne eine solche funktion die gibt aber nur die Datei aber nicht die Ordnernamen aus)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Di 08.08.06 08:05 
Such mal nach "Dateien suchen" o.ä. - es gibt genug Proceduren die dir Dateien mit oder ohne Unterordnern ausgeben...
Das hier solte dir zB helfen: www.delphi-library.d...light=dateien+suchen :wink:

mfg
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 08.08.06 08:14 
In einem OpenDialog kann man nur Dateien markieren. Um Ordner auswählen zu können, benötigt man z.B. sowas. Ob es da eine MultiSelect-Option gibt, weiß ich nicht.

_________________
We are, we were and will not be.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Di 08.08.06 08:44 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
procedure FindeOrdner(const Path: String; List: TStrings);
var
  SR: TSearchRec;
begin
  List.Add(Path);
  if FindFirst(Path + '*.*', faDirectory or faHidden, SR) = 0 then
  begin
    repeat
      if (SR.Attr and faDirectory <> 0) and
         (SR.Name <> '.') and (SR.Name <> '..') then
        FindeOrdner(Path + SR.Name + '\', List);
    until FindNext(SR) <> 0;
    FindClose(SR);
  end;
end;
mattl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77

Win Xp Pro
Deplphi 3 Pro,Delphi 2005 PE
BeitragVerfasst: Di 08.08.06 08:55 
hab jetzt mir datei suchen gemacht funktioniert... thx