Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Di 27.05.03 17:35 
Hallo,

Gibt es noch einen anderen Befehl um ein Verzeichnis auf Existens zu ermitteln ausser
DirectoryExists in der FileCTRL until?

Danke.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 27.05.03 17:57 
Warum?
Biarchiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Di 27.05.03 18:23 
Hallo,

Es geht reihn um eine DosCommand Programm ohne Forms das eher klein gehalten
werden soll.

Wolte nur Fragen obs da was gibt?
AndyB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1173
Erhaltene Danke: 14


RAD Studio XE2
BeitragVerfasst: Di 27.05.03 19:16 
FindFirst/FindClose. Ach ja, die sind auch in SysUtils deklariert.

_________________
Ist Zeit wirklich Geld?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 27.05.03 20:37 
www.luckie-online.de -> Downloads -> Toolbox -> FileTools.inc
AndyB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1173
Erhaltene Danke: 14


RAD Studio XE2
BeitragVerfasst: Di 27.05.03 20:54 
Ums abzukürzen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
function DirExists(const Dir: string): Boolean;
var Attr: Cardinal;
begin
  Attr := GetFileAttributes(PChar(Dir));
  Result := (Attr <> Cardinal(-1)) and (Attr and FILE_ATTRIBUTE_DIRECTORY <> 0);
end;

_________________
Ist Zeit wirklich Geld?