Devi usare questo metodo:

codice:
System.IO.Path.GetFileNameWithoutExtension(percorso);