Answers for "get working dir c#"

C#
1

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# current dir

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

C# Answers by Framework

Browse Popular Code Answers by Language