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
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5