On May 18, 2:18 pm, csharpula csharp <csharp...@yaho o.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 Developersdexht tp://www.developersd ex.com***
Hi,
I think you want to get subfolders of a folder;
using System.IO;
DirectoryInfo dirinfo = new DirectoryInfo(" path_of_main_fo lder");
// For example get subfolders into a listbox control
listBox1.Items. AddRange(dirinf o.GetDirectorie s());
Thanks,
Onur Güzel