How to get Filename without extension from path in c#

C # Code:

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

string Filename = Path.GetFileNameWithoutExtension(FilePath);

Popular posts from this blog

How to send mail to another email id through gmail provider using c#.net

File encryption using c#.net