codice:
nomeFile=stringa.substr(stringa.lastIndexOf("\\")+1)
attenzione al doppio backslash nel codice

ciao