I have the multiple level path of a filename, and I want to pull out just the immediate parent directory name of this file.
Example: Filename = "c:\temp\extra\test\myfile.txt"
How can I get "test" from this string ?
Thanks in advance
Are you able to help answer this sponsored question?
Questions asked by members who have earned a lot of community kudos are featured in order to give back and encourage quality replies.