Autor Beitrag
stigge
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 426

WinXP
Delphi 2007
BeitragVerfasst: Mi 07.03.07 21:03 
Ich möchte, das aus einem Pfad nur der Dateiname herausgefiltert wird. Also wenn ich z.B. diesen Pfad habe

D:\Music\Sean Paul\sean\03-sean_paul-we_be_burnin.mp3

soll alles weggeschnitten werden bis auf den Dateinamen. Also es soll übrigbleiben:

03-sean_paul-we_be_burnin.mp3

Das letzte \ und alles davor soll weggeschnitten werden.
Wie bekomme ich das hin?
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 07.03.07 21:05 
Dafür gibts die Funktion ExtractFileName :D.

_________________
We are, we were and will not be.
stigge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 426

WinXP
Delphi 2007
BeitragVerfasst: Mi 07.03.07 21:09 
Und ich mach da mit stringreplace rum...Danke für die schnelle Hilfe!