How To: Get the foldername in which the file resides

We come across situation many a times where we need the name of the folder in which the file resides. Let's say the folder is as "C:\Project1\CSProj1\somename\file1.cs" We need to get the folder "somename" We can do this by using Read More...

Read the complete post at http://weblogs.asp.net/sushilasb/archive/2006/08/04/How-to-get-the-foldername-in-which-the-file-resides.aspx