I am making a workout software, and it holds multiple accounts. The acounts are saved in a directory like:

C:\Software Name\athletes\John Smith\
C:\Software Name\athletes\Veronica Shelby\
C:\Software Name\athletes\Tyler Front\

I want the ListBox to list each name (i.e. John Smith, Veronica Shelby, etc.) as its own item.

I need it to be ONLY the name, not the entire pathway.

NOTE: The names are folders; they are NOT files.

Somtehing like this should work:

        Imports System.IO


        For Each Folder As String In Directory.GetDirectories("C:\Software Name\athletes")
            ListBox1.Items.Add(Folder.Split("\").Last)
        Next