Get folder name from full folder path March 16, 2024 by Tarik See DirectoryInfo.Name: string dirName = new DirectoryInfo(@"c:\projects\roott\wsdlproj\devlop\beta2\text").Name;