Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void DirSearch(string sDir)
- {
- try
- {
- foreach (string d in Directory.GetDirectories(sDir))
- {
- foreach (string f in Directory.GetFiles(d))
- {
- Console.WriteLine(f);
- }
- DirSearch(d);
- }
- }
- catch (System.Exception excpt)
- {
- Console.WriteLine(excpt.Message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement