Autor Beitrag
neo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Mo 12.05.03 16:49 
Hallo!

Wie kann ich unter Delphi einen Ordner erstellen?

Danke!
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Mo 12.05.03 17:33 
hi,
mit forcedirectories('C:\test1\test2\Test3') erstellt dir alle nicht vorhandenen Verzeichnisse oder mit
mkdir('c:\abc\def'); Wobei ABC vorhanden sein muss.
Zitat:

ausblenden Quelltext
1:
2:
procedure MkDir(const S: string); overload;
procedure MkDir(P: PChar); overload;


Beschreibung

MkDir legt in dem mit S oder P angegebenen Pfad ein neues Unterverzeichnis an. Das letzte Element der Pfadangabe darf kein Name einer vorhandenen Datei sein.

Hinweis

Mit dem Compiler-Schalter {$I+} können Laufzeitfehler durch Exceptions behandelt werden. Wird {$I-} verwendet, muß explizit mit IOResult auf E/A-Fehler geprüft werden.
grez
msch
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 12.05.03 18:03 
forcedirectories plügt halt durch die ordner struktur und legt notfalls die ordner an, die noch nicht existieren

_________________
In the beginning was the word.
And the word was content-type: text/plain.