Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Threading;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- var list = Directory.EnumerateFiles(@"c:", "*", SearchOption.AllDirectories).Where(f => !new FileInfo(f).Attributes.HasFlag(FileAttributes.Hidden | FileAttributes.System | FileAttributes.ReparsePoint));
- foreach (var dir in list)
- {
- Console.WriteLine(dir);
- Thread.Sleep(10);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment