1st method:System.IO.Directory.EnumerateFiles(path, "*.*", SearchOption.AllDirectories).Count(); 2nd method:System.IO.Directory.GetFiles(path, "*.*", SearchOption.AllDirectories).Count();
Directory.GetFiles("\\\\RemoteMachine\\ShareName").Length;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)