io ho fatto così:
dim NomeFile as string="C:\prova\pippo.txt"
dim pos as integer=nomefile.LastIndexOf("\")

NomeFile=Nomefile.substring(pos)

Però la cosa strana è che invece di restituirmi pippo.txt, mi restituisce \pippo.txt
PERCHE'