(Moderator)
Registriert seit: 23. Sep 2003
Ort: Bockwen
12.235 Beiträge
Delphi 2006 Professional
|
Re: Konsole für Anfänger
24. Jan 2008, 20:48
Delphi-Quellcode:
var
TimeTo: Cardinal;
FileFound: Boolean;
begin
TimeTo := GetTickCount() + 15000;
repeat
FileFound = FileExists('Dateiname');
until ((TimeTo < GetTickCount()) or FileFound);
if FileFound then
halt(0)
else
halt(1);
Jens Mit Source ist es wie mit Kunst - Hauptsache der Künstler versteht's
|