Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# get current directory

string currentDir = System.IO.Directory.GetCurrentDirectory();
//returns the current directory of the application when executing
Comment

get current directory c#

System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Comment

how to get the path of the current directory in c#

string exePath = AppDomain.CurrentDomain.BaseDirectory;
// returns the directory where the .exe is located
Comment

get working directory c#

var DDIR = System.IO.Directory.GetCurrentDirectory();
var WorkingDirectory = "";
int index = DDIR.IndexOf(@"");
if (index > 0)
	WorkingDirectory = DDIR.Substring(0, index) + @"";
Comment

how to get current dir in c#

Environment.CurrentDirectory
Comment

PREVIOUS NEXT
Code Example
Csharp :: but dotnet-ef does not exist. 
Csharp :: c# minimize form 
Csharp :: ms crm set state request dynamics 365 set state request 
Csharp :: unity set mouse cursor lock 
Csharp :: unity if in editor 
Csharp :: c# random float between two numbers 
Csharp :: aabb collision 
Csharp :: c# word randomizer 
Csharp :: how to edit text mesh pro text 
Csharp :: c# list to string comma separated 
Csharp :: random number generator unity 
Csharp :: c# remove crlf from string 
Csharp :: vue.createapp is not a function 
Csharp :: how to find object by ag unity 
Csharp :: c# how-to-download-image-from-url 
Csharp :: how to set the fps in monogame 
Csharp :: stop program event in unity code 
Csharp :: stop audio unity 
Csharp :: c# executable directory 
Csharp :: clear screen putty 
Csharp :: get text between two strings c# 
Csharp :: is letter c# 
Csharp :: write to file c# 
Csharp :: c# check if element is last in list 
Csharp :: c# ipaddress from localhost 
Csharp :: move towards target unity 
Csharp :: There is already a virtual axis named Horizontal registered. unity 
Csharp :: how to check if a number is even in c# 
Csharp :: remove all text after string c# 
Csharp :: get current directory cosmos 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =