I have a requirement to display the total count of folders and files and here is my code
this works fine but it takes a lot of time to display the results , because it is on the network, is there a better function i can use to get faster results
string mypath = (@"\\Network\root\folders");// root folder
int dCount = Directory.GetDirectories(mypath, "*.*", SearchOption.AllDirectories).Length;
Label2.Text = dCount.ToString();
Thanks
Go to the complete details ...