Torna al Thread
string dirPath = System.IO.Path.GetDirectoryName(opnDialg1.FileName);
string fileName = System.IO.Path.GetFileName(opnDialg1.FileName); //Ti resituisce il nome completo del file
string fileName = System.IO.Path.GetFileNameWithoutExtension(opnDialg1.FileName); //Ti resituisce solo il nome del file
string fileName = System.IO.Path.GetExtension(opnDialg1.FileName); //Ti resituisce solo l'estensione del file