Jump to content

- - - - -

Grub4dos FindFile and booting to winre.wim (mystery)

  • Please log in to reply
1 reply to this topic

#1 steve6375


    Platinum Member

  • Developer
  • 6669 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
    United Kingdom

Posted 16 January 2017 - 06:01 PM

I have written a grub4dos batch file (FindFile.g4b) for E2B which allows us to search sub-folders on a drive volume for a particular file or file extension.


The reason for this is explained in my blog post here.


This seems to work OK, but it has a side affect in that the WinPE recovery session seems to create a new empty hidden \Recovery folder on the C: drive and also an empty \Recovery.txt on another drive (e.g. USB boot drive).


I have noticed that sometimes these are left behind when rebooting to Windows and sometimes they remain.


Does anyone know why they are made and is there a way to prevent it?

Edited by steve6375, 18 January 2017 - 06:43 PM.

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14033 posts
  • Location:The Outside of the Asylum (gate is closed)

Posted 16 January 2017 - 06:41 PM

If I may ( as a side note as this does not in any way answer your question) rather than blindly checking disks and partitions, you could use/integrate in your batch the hdpart script by Chenal (or similar) so that you search only in existing partitions:

(and then you have a menu pointing to the found entry).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users