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

how to get current dir in c#

Environment.CurrentDirectory
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to filter a datatable in c# 
Csharp :: access object property C# 
Csharp :: c# string slice 
Csharp :: from string 
Csharp :: c# numbers only 
Csharp :: linq query select where c# 
Csharp :: Get the Photon Player GameObject 
Csharp :: c# remove duplicates from list 
Csharp :: c# how to print 
Csharp :: Write text in Word Document at specific location using C# 
Csharp :: replace first occurrence of character in string c# 
Csharp :: To CharArray 
Csharp :: c# next level script 
Csharp :: c# pi 
Csharp :: unity render to texture2d 
Csharp :: autfac .net 6 
Csharp :: c# system.text.json deserialize 
Csharp :: conditional if statement c# programming 
Csharp :: destroy gameobject with tag unity 
Csharp :: get device name c# console 
Csharp :: c# remove everything after last slash 
Csharp :: declare enum c# 
Csharp :: get quaternion from vector unity 
Csharp :: c# obsolete class 
Csharp :: working with registry in c# 
Csharp :: dxf read c# 
Csharp :: audio unity 
Csharp :: reverse a linked list C# 
Csharp :: select specific columns from datatable in c# using lambda 
Csharp :: c# window form align right bottom 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =