Answers for "how to get file directory path in c#"

C#
1

get documents path c#

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

c# get folder path from file path

Path.GetDirectoryName(filename);
Posted by: Guest on June-02-2021
0

c# how to get a file path from user

FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.Description = "Custom Description"; 

if (fbd.ShowDialog() == DialogResult.OK)
{
    string sSelectedPath = fbd.SelectedPath;
}
Posted by: Guest on May-31-2020

Code answers related to "how to get file directory path in c#"

C# Answers by Framework

Browse Popular Code Answers by Language