Autor Beitrag
Ryazor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Sa 15.03.03 18:02 
Hallo!
Ich würde gerne eine Datei in einem String anzeigen lassen, den ich vorher mit dem Open-Dialog ausgesucht habe.
Aber nicht einfach mit Open.FileName da der mir auch den Pfad anzeigt.
Wenn ich z.B. ne Datei "abc.wav" ausgesucht hab, die im Ordner "C:\Musik" ist, dann zeigt der mir auch "C:\Musik\abc.wav" an...
Das möchte ich nicht, gibt's ne Möglichkeit den Dateinamen ohne Pfad anzeigen zu lassen?
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Sa 15.03.03 18:23 
Klar gibt´s eine:
ausblenden Quelltext
1:
ExtractFileName('D:\test\xyz.txt');					

Würde dir zum Beispiel 'xyz.txt' zurückgeben.

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
Ryazor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Sa 15.03.03 18:27 
Oh mann, genau das, was ich gesucht hab!!
VIELEN DANK!!!! :D :D