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

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Mi 05.03.03 17:11 
tach post,
wie der titel bereits verrät, möchte ich gerne über einen ShellTreeView einen neuen ordner erstellen, nachmöglichkeit per button klick. eignet sich diese komponenten eigentlich gut dafür, oder ist das eine andre besser??

mfg hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 10.03.03 23:13 
Du brauchst keine Komponente, das geht einfach mit einer schönen Prozedur:
CreateDir('Dein Ordner');
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mo 10.03.03 23:17 
mkDir geht auch noch
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 10.03.03 23:19 
stimmt. mir ist das grad nicht eingefallen, obwohl mkdir eigentlich das gebräuichiger ist.
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mo 10.03.03 23:25 
jupp.

wenn du filectrl in die uses schreibst, dann kannst du auch forcedirectory verwenden:


hier ein beispiel:

bei dir existiert ein ordner namens c:\hubba\bubba\
und du möchtest 2 weitere unterordner erstellen(der zweite ist ein unterordner des 1.)
c:\hubba\bubba\test\hallöchen
sowas möchtest du erstellen.
dann kannst du forcedirectory('c:\hubba\bubba\test\hallöchen');(oder so)
verwenden, und es werden alle noch nicht vorhandenen ordner automatisch erstellt.

du musst alo nicht fologendes machen:
ausblenden Quelltext
1:
2:
mkdir('c:\hubba\bubba\test');
mkdir('c:\hubba\bubba\test\hallöchen');
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 10.03.03 23:27 
Aber filectrl ist Systemabhängig und geht nicht auf jedem Windows-Betriebssystem. Deswegen ist mkdir und createdir besser.
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mo 10.03.03 23:29 
jupp. hast recht.

kann man eigendlich die filectrl datei einfach auf einanderes system kopieren (wo liegt die datei)
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 11.03.03 14:36 
wie auf ein anderes system kopieren? da werden einfach funkionen benutzt die nicht jedes windows unterstützt
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Di 11.03.03 16:47 
danke erstmal für die antwort.
aber was soll das heißen:
Zitat:
das geht einfach mit einer schönen Prozedur:

das versteh ich nicht ganz? welche prozedur soll ich denn da schreiben ?
und wie ist das mit dem
Zitat:
CreateDir('Dein Ordner');

gemeint? :oops:
könnt ihr mir da nocheinmal weiterhelfen? :oops:

mfg hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 11.03.03 16:51 
Es gibt das diese Prozedur(du weißt schon was das ist) die man einfach aufruft und als Parameter den zu erstellenden ordner angibt. Und diese nennt sich CreateDir('Dein Ordner');