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
Give this a try
For Each d As String In IO.Directory.GetDirectories(FolderName)
'IO.Path.GetFileName
'The characters after the last directory character in path.
ComboBox3.Items.Add(IO.Path.GetFileName(d))
Next
This takes advantage of the fact that you have a list of directories and what IO.Path.GetFileName actually does.