I want my application to search through the whole computer for a specific file, and open it. I tried:
var files = new List<string>();
foreach (DriveInfo d in DriveInfo.GetDrives().Where(x => x.IsReady == true))
{
files.AddRange(Directory.GetFiles(d.RootDirectory.FullName, "Kalimba.mp3", SearchOption.AllDirectories));
}
Got error: No access C:\$Recycle.Bin\S-1-5-18.