tandrysse
3
Q:

c# get script directory

var DDIR = System.IO.Directory.GetCurrentDirectory();
var WorkingDirectory = "";
int index = DDIR.IndexOf(@"\");
if (index > 0)
	WorkingDirectory = DDIR.Substring(0, index) + @"\";
2
System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
3
string appPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
0

New to Communities?

Join the community