Answers for "how to get the this directory in c#"

C#
11

c# get current directory

string currentDir = System.IO.Directory.GetCurrentDirectory();
//returns the current directory of the application when executing
Posted by: Guest on December-11-2020
0

get folders in directory c#

string[] folders = System.IO.Directory.GetDirectories(@"C:My Sample Path","*", System.IO.SearchOption.AllDirectories);
Posted by: Guest on October-30-2020

Code answers related to "how to get the this directory in c#"

C# Answers by Framework

Browse Popular Code Answers by Language