My path is \\\\server\\folderName1\\another name\\something\\another folder\\
\\\\server\\folderName1\\another name\\something\\another folder\\
How do I extract each folder name into a string if I don\'t know how many
Maybe call Directory.GetParent in a loop? That's if you want the full path to each directory and not just the directory names.