sharath mqd

sharath mqd

  • NA
  • 7
  • 0

Unable to get files/ folder under C:\windows\system32\OObe

Mar 26 2020 10:33 PM
below is the code which i have written. but getting only single and 2 DLL information only. Need help ASAP as i have production deployment on Saturday.
  1. string[] allfiles = Directory.GetFiles("C:\Windows\System32\oobe"".", SearchOption.AllDirectories);
  2. foreach (var file in allfiles)  
  3. {  
  4. FileInfo info = new FileInfo(file);  
  5. listBox_DirectoryRecoveryOOBE.Items.Add(info);  
  6. }  
  7. DirectoryInfo directoryinfo = new DirectoryInfo("C:\\Windows\\System32");  
  8. DirectoryInfo[] dirs = directoryinfo.GetDirectories();  
  9. FileInfo[] WindowsSys32 = directoryinfo.GetFiles();  
  10. foreach (System.IO.DirectoryInfo di in dirs)  
  11. {  
  12. listBox_DirectoryMainOOBE.Items.Add(di.FullName);  
  13. }  
  14. foreach (FileInfo fileinfo in WindowsSys32)  
  15. {  
  16. listBox_DirectoryMainOOBE.Items.Add(fileinfo.FullName);  

Answers (2)