Try this, drop a listbox on your form, or delete the last line and run this loop in your console application.
ArrayList folders = new ArrayList();
// list folders
foreach(String folder in Directory.GetDirectories(@”C:\Program Files”))
if (folder != String.Empty)
listBox1.DataSource = folders;