ниже код, который я написал. но получение только одной и двух DLL-информации.
string[] allfiles = Directory.GetFiles("C:\\Windows\\System32\\oobe", "*.*", SearchOption.AllDirectories);
foreach (var file in allfiles)
{
FileInfo info = new FileInfo(file);
listBox_DirectoryRecoveryOOBE.Items.Add(info);
}
DirectoryInfo directoryinfo = new DirectoryInfo("C:\\Windows\\System32");
DirectoryInfo[] dirs = directoryinfo.GetDirectories();
FileInfo[] WindowsSys32 = directoryinfo.GetFiles();
foreach (System.IO.DirectoryInfo di in dirs)
{
listBox_DirectoryMainOOBE.Items.Add(di.FullName);
}
foreach (FileInfo fileinfo in WindowsSys32)
{
listBox_DirectoryMainOOBE.Items.Add(fileinfo.FullName);
}