Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

dotnet get directory of executable

var exeFile = System.Reflection.Assembly.GetExecutingAssembly().Location;
var exeDirectory = System.IO.Path.GetDirectoryName(exeFile);

Console.WriteLine($"Executable file: {exeFile}");
Console.WriteLine($"Executable directoy: {exeDirectory}");
Source by iq.direct #
 
PREVIOUS NEXT
Tagged: #dotnet #directory #executable
ADD COMMENT
Topic
Name
6+1 =