private void Go_Click(object sender, EventArgs e) { drives = System.Environment.GetLogicalDrives(); Thread t = new Thread(() => Engine(drives)); t.Start(); } private void Engine(string[] path) { foreach (string s in path) { try { foreach (string f in System.IO.Directory.GetFiles(s)) list.Items.Add(f); Engine(System.IO.Directory.GetDirectories(s)); } catch { continue; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)