get the path adrress cureent c# code example
Example 1: get current directory c# \
System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Example 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) + @"\";