Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 25.07.02 15:11 
Hi,
ich möchte gerne über Delphi einen neuen Ordner erstellen.Außerdem möchte ich, dass delphi eine bestimme datei auf meinem Computer sucht und mir den pfad anzeigt.kann mir jemand weiterhelfen ?
mfg hibbert !
wwerner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 185



BeitragVerfasst: Do 25.07.02 15:13 

_________________
Gruß

Wolfgang

----------
zu hause ist es doch am schönsten
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Do 25.07.02 15:48 
Hallo,

Ordner lassen sich sehr schön mit dem Befehl ForceDirectories erstellen, welcher nicht nur einen Einzelnen Ordner sondern einen Kompletten Pfad erstellt.

Gruß
Klabautermann
hitstec
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 295



BeitragVerfasst: Do 25.07.02 18:17 
Die Funktion ForceDirectories benötigt die Unit FileCtrl.

ausblenden Quelltext
1:
uses ..., FileCtrl;					
Maxman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Do 25.07.02 22:43 
Titel: andere möglichkeit
Hallo!

Es gäbe auch die Möglichkeit, einen Ordner mit dem Befehl CreateDir('Pfad') zu erstellen. Hier musst du nichts hinzufügen.

Viel Spaß!
Maxman
hitstec
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 295



BeitragVerfasst: Do 25.07.02 23:30 
Zitat:
Es gäbe auch die Möglichkeit, einen Ordner mit dem Befehl CreateDir('Pfad') zu erstellen. Hier musst du nichts hinzufügen.

Beachte, dass dieser Befehl nichts nützt, wenn im angegeben Pfad übergeordnete Ordner nicht exisitieren.
delphi-programmer
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Sa 27.07.02 10:22 
Hallo, ich benuzte immer den Befehl MkDir(pfad).
Damit hatte ich bis jetzt noch nie Probleme ;-)

Viel Erfolg beim programmen...

Stief
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Sa 27.07.02 10:24 
Zitat:
Hallo, ich benuzte immer den Befehl MkDir(pfad).
Damit hatte ich bis jetzt noch nie Probleme :wink:


Wirste aber bekommen, wenn der übergeordnete Ordner nicht existiert. :mrgreen:

_________________
Viele Grüße
Jakob