Horje
c# get current directory Code Example
c# get current directory
string currentDir = System.IO.Directory.GetCurrentDirectory();
//returns the current directory of the application when executing
get current directory c# \
System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
c# get script directory
string appPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
get working directory c#
var DDIR = System.IO.Directory.GetCurrentDirectory();
var WorkingDirectory = "";
int index = DDIR.IndexOf(@"\");
if (index > 0)
	WorkingDirectory = DDIR.Substring(0, index) + @"\";
get execution directory c#
string logsDirectory = Path.Combine(Environment.CurrentDirectory, "logs");




Csharp

Related
create a directory if it doesnt exist c# Code Example create a directory if it doesnt exist c# Code Example
count number of enum values C# Code Example count number of enum values C# Code Example
unity string split Code Example unity string split Code Example
unity reset scene Code Example unity reset scene Code Example
raycast from camera to mouse unity Code Example raycast from camera to mouse unity Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11