Posted on 2012-04-04
hopefully simple question for vb.net experts. If i have string variable that looks something like this:
Dim s as String = "C:\Folder1\Folder2\Folder3\File1.txt"
or the value of s could have somethign like this:
Dim s as String = "C:\a\b\c\File1.txt"
I want to basically navigate to the second folder so I end up with this:
Dim result as String = "C:\Folder1\Folder2\"
Dim result as String = "C:\a\b\"