How can I remove or deactivate the Windows system32/find.exe?

Posted on

QUESTION :

I am trying to make my Windows System as compatible with existing Makefiles as possible. One great step that is missing is replacing the windows “find” (which is the same as grep) with the GNU find (list of all files in directory and sub directories). Is this possible? (I already have msys find installed and ready to go. Just removing system32/find.exe would probably work, but unfortunately it is not possible that easily)

ANSWER :

Rather than removing Windows’ find.exe, I strongly recommend putting GNU in your path before WindowsSystem32. For example, with Cygwin, you can use something like:

path c:cygwinbin;c:windowssystem32;c:windows;c:program
filesfoo;c:program filesbar;c:windowssystem32wbem

You can gain access to all protected files by changing the ownership.

For Windows 7, on the file or folder that you want to edit:

  • Go to Properties->Security->Advanced->Owner
  • Change owner to either Administrators or your own User
  • On Properties->Security grant rights to the new owner

Source: Windows 7 – How to Delete Files Protected by TrustedInstaller

Leave a Reply

Your email address will not be published. Required fields are marked *