Search
 
SCRIPT & CODE EXAMPLE
 

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}");
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# append to file 
Csharp :: how to convert string to bool c# 
Csharp :: hello world c 
Csharp :: how to flip character in unity 2d 
Csharp :: wpf close application 
Csharp :: c# convert Unix time in seconds to datetime 
Csharp :: unity override 
Csharp :: unity or 
Csharp :: csharp string to double 
Csharp :: c# remove all null from list 
Csharp :: c# how to get screen resolution in class 
Csharp :: how to find the mouse position unity 
Csharp :: byte array to hex c# 
Csharp :: unity disable cursor 
Csharp :: loop through multidimensional array c# 
Csharp :: unity string array 
Csharp :: get host ip address asp.net core 
Csharp :: c# map number range 
Csharp :: set textbox colour to transparent c# 
Csharp :: messagebox.show c# error 
Csharp :: contains with ignore case c# 
Csharp :: unity list of gameobjects 
Csharp :: how to get all panels in form in c# 
Csharp :: change image source wpf 
Csharp :: unity c# addition class 
Csharp :: how to set progress openedge driver name for odbc connection c# 
Csharp :: c# process start 
Csharp :: get the current directory in unity 
Csharp :: mvc input type file 
Csharp :: get item from icollection 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =