using System; using System.Linq; using BurnOutSharp; namespace Test { class Program { static void Main(string[] args) { var p = new Progress(); p.ProgressChanged += Changed; foreach (string arg in args) { Console.WriteLine(String.Join("\r\n", ProtectionFind.Scan(arg, p).Select(kvp => kvp.Key + ": " + kvp.Value))); } Console.ReadLine(); //ProtectionFind.ScanSectors('D', 2048); } private static void Changed(object source, FileProtection value) { Console.WriteLine($"{value.Percentage * 100}: {value.Filename} - {value.Protection}"); } } }