On May 18, 2:18 pm, csharpula csharp <csharp...@yahoo.comwrote:
Hello,
I got an object of DirectoryInfo and I would like to know how can I get
the names of all child directories of this folder?
Thank you!
*** Sent via Developersdexhttp://www.developersdex.com***
Hi,
I think you want to get subfolders of a folder;
using System.IO;
DirectoryInfo dirinfo = new DirectoryInfo("path_of_main_folder");
// For example get subfolders into a listbox control
listBox1.Items.AddRange(dirinfo.GetDirectories());
Thanks,
Onur Güzel