Saturday 19 May 2012

Get File Name Without Extention

Below code in asp.net get the filename without extention.

DirectoryInfo directoryInfo = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.SendTo)); directoryInfo.GetFiles().Select(file => Path.GetFileNameWithoutExtension(file.Name)).ToArray();

Posted By : Dipen Shah 
Stay Tuned...

No comments:

Post a Comment