Guest User

Untitled

a guest
Oct 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3. using System.Threading;
  4.  
  5. namespace ConsoleApp1
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. var list = Directory.EnumerateFiles(@"c:", "*", SearchOption.AllDirectories).Where(f => !new FileInfo(f).Attributes.HasFlag(FileAttributes.Hidden | FileAttributes.System | FileAttributes.ReparsePoint));
  12.  
  13.  
  14.  
  15. foreach (var dir in list)
  16. {
  17.  
  18. Console.WriteLine(dir);
  19. Thread.Sleep(10);
  20.  
  21. }
  22. }
  23.  
  24. }
  25. }
Add Comment
Please, Sign In to add comment