var tmpPath = Path.GetTempPath();
var files = Directory.GetFiles(tmpPath, "*.*", SearchOption.AllDirectories);
listBox1.AddRange(files);
foreach(var file in files) { if (File.Exists(file)) { File.Delete(file); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)