Answers for "c# path get directory"

C#
2

get directory name of path c#

string filename = @"C:/folder1/folder2/file.txt";
string FolderName = new DirectoryInfo(System.IO.Path.GetDirectoryName(filename)).Name;
Posted by: Guest on January-01-2021
1

get documents path c#

String path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
Posted by: Guest on February-26-2021

Code answers related to "c# path get directory"

C# Answers by Framework

Browse Popular Code Answers by Language