I am writing all files in a directory and all it’s subdirectories to an excel. I have a column that prints the full path, the file name and the file type. I want another column that prints the subfolder name that the file belongs to.
I am using this code :str_output = Split(str_input,"").Last().ToString.Trim
Its printing out the file name also as it’s using .LAST, My question is how to I get it to look at the one folder back from that only