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

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

c# get folder path from file path

Path.GetDirectoryName(filename);
Comment

how to get current dir in c#

Environment.CurrentDirectory
Comment

PREVIOUS NEXT
Code Example
Csharp :: How to get the world position of the edge of an object? 
Csharp :: unity hub black screen 
Csharp :: c# string to enum 
Csharp :: unity keycode 
Csharp :: c# console beep sounds 
Csharp :: c# get month number from name 
Csharp :: rigidbody.addtorque 
Csharp :: inline list in c# 
Csharp :: how to stop rigidbody2d from falling in unity 
Csharp :: group by linq multiple columns c# 
Csharp :: asp net bootstrap 5 navigation bar 
Csharp :: clear textbox winform 
Csharp :: bootstrap modal 
Csharp :: unity instantiate with name 
Csharp :: how to delete from a list c# 
Csharp :: content type application/json c# 
Csharp :: unity button press onclick click add C# 
Csharp :: how to clear datagridview c# 
Csharp :: c# string default value 
Csharp :: entity framework update child records 
Csharp :: open folder dialog c# 
Csharp :: get 2d rotation from 2 position math 
Csharp :: unity on inspector change 
Csharp :: asking for user input integer c# 
Csharp :: c# string array to string 
Csharp :: c# integer to bit string 
Csharp :: c# array to list 
Csharp :: csharp sleep code 1 second 
Csharp :: unity show colliders 
Csharp :: remove index from array c# 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =