Results 1 to 7 of 7
  1. #1
    Kame
    Guest

    Default What's a better search for text within files than Windows XP's search?

    Hey,

    I need to search within PHP files in a directory including sub-directories for a single string so that I can collect all files that I'll need to update them for compatibility reasons.

    Or alternatively, is their a WinXP Reg Hack to get it to search PHP files, considering they are only ASCII (text) based files, yet they seem to get ignored by Window's Search.

    Thanks in advance,


    Kame.

  2. #2
    Kame
    Guest

    Default Re: What's a better search for text within files than Windows XP's search?

    Sorry for wasting time,

    Answer found here http://www.mostlycreativeworkshop.com/article59.html

    Anyways if there's other alternative tools, I'd still be interested.

  3. #3
    mikebartnz
    Guest

    Default Re: What's a better search for text within files than Windows XP's search?

    Do a search for this file grep22setup.exe it will install Windows Grep which sounds as if it is exactly what you want.

  4. #4
    bmason
    Guest

    Default Re: What's a better search for text within files than Windows XP's search?

    The above link explained a lot. I had just assumed MS had though adding an animated puppy was more important than a search that actually works.


    Anyway, if you don't mind the command line then either "find" or "findstr" (has regex support) will do what you want. They aren't as good as grep but they come standard with windows.

    For GUI searching I usually use TextPad which has a find in files option.

  5. #5
    Kame
    Guest

    Default Re: What's a better search for text within files than Windows XP's search?

    grep for Windows, I forgot all about it, I actually run mingw32 which is like a linux bash-like program on Windows and it has grep, I could have used that instead, my bad.

    Anyways the site I posted about the Reg Hack for it, is not completely correct, so I'll provide a better method.

    ALWAYS REMEMBER TO BACKUP YOUR REGISTRY

    We need to create a .reg file but the problem being it has to be binary format.

    The easiest way is to export a similar and already Windows Searching capable, so browse to HKEY_CLASSES_ROOT\.xml and right click on it and export it to your desktop, call it php.reg

    Now in an editor, edit the program to show.

    [HKEY_CLASSES_ROOT\.php]
    "PerceivedType"="text"
    @="phpfile"

    [HKEY_CLASSES_ROOT\.php\PersistentHandler]
    @="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

    Save it and now, double click on it and it'll ask if you want to add it to the registry, say yes and that's it. Restart the computer then try searching and be amazed.

    You can just change .php to whatever file extension you like but remember that @="phpfile" maybe better if it's not set at all e.g. @="".

    Cheers,


    Kame

  6. #6
    Kame
    Guest

    Default Re: What's a better search for text within files than Windows XP's search?

    There seems to be a lot of extensions missing for text only files, I think I'll write a complete Reg Hack for all the missing files, that I would believe would be worth including, who cares if it makes their search function slower, that just shows how stupid they can be, it's like buying a happy meal and not getting the toy because it would have taken the staff longer to grab it.

    Although from this, I can say Microsoft like quick and poorly made software, they cater for stupid things and not what's important. Who's thinking they're still safe behind their MS Firewall now?


    Kame

  7. #7
    Chilling_Silence
    Guest

    Default Re: What's a better search for text within files than Windows XP's search?

    Boot Knoppix - Mount your Windows folder and:
    cat /mnt/hda1/Program\ Files/Apache2/htdocs/* | grep text_to_search_for


    ;-)

Similar Threads

  1. Replies: 2
    Last Post: 14-10-2008, 12:53 PM
  2. Replies: 9
    Last Post: 14-01-2008, 09:03 PM
  3. Replies: 5
    Last Post: 30-09-2003, 01:19 PM
  4. Search Files Windows ME
    By thephoenix in forum PressF1
    Replies: 16
    Last Post: 13-07-2002, 11:06 PM
  5. Search for files
    By thephoenix in forum PressF1
    Replies: 1
    Last Post: 04-07-2002, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •