I want to find all directories in one directory in vb.net.
I found one script:
For Each Dir As String In Directory.GetDirectories(FolderName) Com
I think the easiest way would be using String.Replace to remove FolderName from the beginning of the directory full name.
String.Replace
FolderName
For Each Dir As String In System.IO.Directory.GetDirectories(FolderName) ComboBox3.Items.Add(Dir.Replace(FolderName, String.Empty)) Next