Is it possible to search inside PHP files using the Windows search engine (W7)?

I'm using windows 7.

I have hundreds of PHP files inside a folder, and I want to find all the files that contains a particular word.

I know that the Windows search engine is able to search inside a file, but this feature only works on some very common extensions (like TXT, JS...).

Is it possible to search inside a file with other extensions? (without using any third-party software)

Someone resolved this problem in Indexing Options -> Advanced Options, but on my PC the Advanced button is grayed out:

screenshot

1

1 Answer

Using the Command Prompt you can use findstr which will search for ASCII characters within any files.

FindStr Microsoft Technet

Example syntax would look like this:

FINDSTR /i /S foobar *.*

This Will return all occurances of the word foobar in all current folders & subfolders regardless of casing

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like