2
Answers

how to get first folder name from a file path??

Photo of Sujeet Raman

Sujeet Raman

5y
2.7k
1
i have a file path like 
 
path =01ABCDATA\apps\data2\names\fstname
 
here i need to get the first part 01ABCDATA   
 
i need to get the first word before firxtslash..how will we do this?

Answers (2)