0

I'm trying to use the Windows 7 search to look for a file name within a file like this:

content:"reports.asp"

Instead of getting just files that contains "reports.asp" I am also getting files that contains "reports". I have also tried this because I thought I have to escape the character:

content:"reports\.asp"

How can I modify my search so that I am only getting files that contains "reports.asp"?

[UPDATE] I have checked Trouble trying to use Windows Search to search for file with a question mark in the content and it appears that it did not help me. I have tried using the suggestion as follows:

content:"reports~=.asp"

But I get the same result as if I just used my first search parameters.

John Odom
  • 123

2 Answers2

1

It would be easier to use file commander for this, for example Total Commander. You can search then in selected files, within them and archives like rar, zip etc. inside. You can even search for a particular regular expression then!

pbies
  • 3,550
1

EDIT:

Using the FIND command in CMD

Ended up solving the problem using FIND.

FIND /I "reports.asp" C:\Approximate location of file\*

*Note that you must include the asterisk * as you are searching for a file not folder. Failing to do so will yield an Access is Denied error.

The method below is for searches not wanting to find content inside files (so only for file names)

Open Folder Options by going into Control Panel, clicking Appearance and Personalization, and then clicking Folder Options (or any of the numerous other ways to get there).

enter image description here

Under the Search tab, disable Find Partial Matches. This should fix your problem.

enter image description here

Rsya Studios
  • 3,716