Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

get filename from path c#

string fileName = Path.GetFileName(path);
Comment

get directory name of path c#

string filename = @"C:/folder1/folder2/file.txt";
string FolderName = new DirectoryInfo(System.IO.Path.GetDirectoryName(filename)).Name;
Comment

c# get directory name from filename

Path.GetDirectoryName(filename);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# linq select only unique values from list 
Csharp :: how can prevent the empty input in jquery 
Csharp :: Operator Overloading | C# 
Csharp :: difference between class and struct in c# 
Csharp :: Pass Querystring in C# httpclient 
Csharp :: get index c# 
Csharp :: unity audio 
Csharp :: count number of properties on an object C# 
Csharp :: check if file exist c# 
Csharp :: C# how to use if and else 
Csharp :: Gameobject.Find in unityC# 
Csharp :: generate qr code c# 
Csharp :: c# insert spaces before capital letters 
Csharp :: switch expression c# multiple cases 
Csharp :: dotnet automapper.extensions.microsoft.dependencyinjection 
Csharp :: lcm of numbers 
Csharp :: c# print decimal with zero at the end 
Csharp :: nunjucks index in loop 
Csharp :: unity check if camera can see object 
Csharp :: c# binding add combobox with enum values 
Csharp :: list to ienumerable c# 
Csharp :: c# excel workbook 
Csharp :: c# get function name 
Csharp :: solid principles c# 
Csharp :: convert int32 
Csharp :: unity banner Ad position 
Csharp :: c# set cursor to loading and back 
Csharp :: c# backup sql 
Csharp :: unity vector3 to array 
Csharp :: c# replace multiple characters 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =