Friday, 8 June 2012

Enumerate Directories using C#

list all directories  in C drive using C#


      var expr=System.IO.Directory.EnumerateDirectories(@"c:\");
            foreach (String file in expr)
            {
                Console.WriteLine(file);
            }

No comments:

Post a Comment