var path = @"L:\"; int files = System.IO.Directory.GetFiles(path, "*.*", SearchOption.AllDirectories).Count(); int dirs = System.IO.Directory.GetDirectories(path, "*", SearchOption.AllDirectories).Count();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)