Sujeet Raman

Sujeet Raman

  • 864
  • 927
  • 352.9k

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

Apr 28 2020 5:40 AM
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)