I am feeling like an idiot today but...

I have a string which holds the path:
C:\WINNT\Media\Windows Logon Sound.wav
I just wanna be able to chop off the file name and put it in a listbox. I am just being stupid today and can't think of the best way to do it, just a function to chop off anything after the last " \" and return it as its own string.


Zevlag