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)
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:
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