Autor Beitrag
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: So 16.11.03 00:17 
Hallo Leute !

Wie kann ich Alle Dateien,die auf einer Festplatte sind anzeigen !
Ich möchte die Dateien,dann nach dem Datum überprüfen und wenn das Datum übereinstimmt,dann soll eine Meldung angezeigt werden !

Wie geht das ?

Jagg !
Killmag10
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: So 16.11.03 02:20 
Allso die dateien und ordner findest du mit: Suche in: Delphi-Forum, Delphi-Library FINDFIRST FINDNEXT FINDCLOSE
Beispiel:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
var

  SearchRec: TSearchRec;


procedure TForm1.SearchClick(Sender: TObject);
begin
  FindFirst('c:\Programme\delphi4\bin\*.*', faAnyFile, SearchRec);
  Label1.Caption := SearchRec.Name + ' ist ' + IntToStr(SearchRec.Size) + ' Byte groß.';
end;

procedure TForm1.AgainClick(Sender: TObject);
begin
  if (FindNext(SearchRec) = 0then
        Label1.Caption := SearchRec.Name + ' ist ' + IntToStr(SearchRec.Size) + ' Byte groß.'
  else

    FindClose(SearchRec);
end;

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 16.11.03 10:37 

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 17.11.03 11:07 
@Jagg: Du bist doch schon lang genug im Delphi-Forum.de unterwegs, oder? Schau bitte vorher dem Fragen in die FAQ. Dort werden sehr viele Fragen beantwortet. Dank Dir!

Gruß
Tino