Answers for "c# get current directory"

C#
10

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
6

get current directory c# \

System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Posted by: Guest on August-17-2020
2

get working directory c#

var DDIR = System.IO.Directory.GetCurrentDirectory();
var WorkingDirectory = "";
int index = DDIR.IndexOf(@"\");
if (index > 0)
	WorkingDirectory = DDIR.Substring(0, index) + @"\";
Posted by: Guest on September-15-2020
0

c# get script directory

string appPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
Posted by: Guest on September-20-2020
0

get execution directory c#

string logsDirectory = Path.Combine(Environment.CurrentDirectory, "logs");
Posted by: Guest on September-13-2020

C# Answers by Framework

Browse Popular Code Answers by Language