DriveInfo[] allDrive = DriveInfo.GetDrives(); foreach (DriveInfo d in allDrive) { string b = d.Name.ToString(); var filename = Directory.GetFiles(b, "*.doc*", SearchOption.AllDirectories); foreach (string a in filename) { listBox1.Items.Add(a.ToString()); listBox1.Items.Add("Creation Time:"+System.IO.File.GetCreationTime(a.ToString())); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)