DirectoryInfo directory = new DirectoryInfo(pathDownload); DirectoryInfo[] directories = directory.GetDirectories(); foreach(DirectoryInfo folder in directories) listBox2.Items.Add(folder.Name);