Mar 21, 2014

How to get Filename without extension from path in c#

C # Code:

string FilePath ="D:\\images\\1.png";

string Filename = Path.GetFileNameWithoutExtension(FilePath);