cancel
Showing results for 
Search instead for 
Did you mean: 

<censored> windows search!

jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

<censored> windows search!

I've finally figured it out but it's blooming obscure and practically undocumented, I just wonder how many others know how to do it.
I've a directory with subdirectories containing nearly 300 program source code files (with specific extensions and there are other file types in there as well).
I want to find all programs that contain the exact string @.answers. Note there are many, many programs that contain the word answers without the prefix of @.. There's also some file names where answers is part of the name.
Just typing @.answers in to the Windows Explorer search box brings up scores of unwanted matches.
So how do you do it?
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
11 REPLIES 11
w23
Pro
Posts: 6,347
Thanks: 96
Fixes: 4
Registered: ‎08-01-2008

Re: <censored> windows search!

Try in 'Folder and Search Options' (Click 'Organize' at the top of an explorer window in Windows 7, may differ in different versions)
Select the 'Search' tab and untick 'Find Partial Matches'
Not tried it so it may or may not work.
Call me 'w23'
At any given moment in the universe many things happen. Coincidence is a matter of how close these events are in space, time and relationship.
Opinions expressed in forum posts are those of the poster, others may have different views.
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: <censored> windows search!

Nope - that's not how you do it. It still matches any file that contains "answers".
I'll end your bafflement: you enter this in the search box:
content:~="@.answers"

I said it was obscure!
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
Strat
Community Veteran
Posts: 31,320
Thanks: 1,609
Fixes: 565
Registered: ‎14-04-2007

Re: <censored> windows search!

I thought the quotes bit worked until I tried it.
However the rest of it....who would have guessed. Huh
Windows 10 Firefox 109.0 (64-bit)
To argue with someone who has renounced the use of reason is like administering medicine to the dead - Thomas Paine
MauriceC
Resting Legend
Posts: 4,085
Thanks: 929
Fixes: 17
Registered: ‎10-04-2007

Re: <censored> windows search!

After a short trial, I added 'Windows search' to my box that contains other 'useful' ephemera such as Chocolate teapots;  Plusnet Assist;  Outlook Express .................. etc  Cheesy
M

Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.

jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: <censored> windows search!

Grin Grin Grin
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
IanSn
Rising Star
Posts: 565
Thanks: 31
Registered: ‎25-09-2011

Re: <censored> windows search!

How did you come up with/discover that?!
Not tried it yet but if it works it'll be the answer I've needed for years! Thank you!!!
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: <censored> windows search!

Partly googling and then a bit of guessing!
It was so easy on XP if you used the old search method.
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
lemming
Grafter
Posts: 30
Thanks: 1
Registered: ‎16-03-2015

Re: <censored> windows search!

Using Gnuwin32 grep it's a one-liner; eg to list all .txt files containing the string "@.answers" in C:\temp and subdirectories:
> grep -l -r --include=*\.txt  @\.answers  C:\temp
You could also get there using a  native W7 shell script, either the basic one or Powershell,  "Microsoft's answer to Unix shell scripting". http://commandwindows.com/windows7-commands.htm .  Somewhere, presumably, the GUI options are also listed.
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: <censored> windows search!

I do use command line FIND from time to time. The disadvantage is of course that unlike with the Windows Explorer search you don't end up with a list of files you can double click to open.
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
w23
Pro
Posts: 6,347
Thanks: 96
Fixes: 4
Registered: ‎08-01-2008

Re: <censored> windows search!

Quote from: jelv

content:~="@.answers"


Do you think I need to change my internet banking password?  Huh
Because it's probably nearly as easy to guess as that command!  Shocked
Call me 'w23'
At any given moment in the universe many things happen. Coincidence is a matter of how close these events are in space, time and relationship.
Opinions expressed in forum posts are those of the poster, others may have different views.
sjptd
Grafter
Posts: 494
Thanks: 4
Registered: ‎01-09-2014

Re: <censored> windows search!

Unlike grep, windows search can often work from its prescanned summary database: not sure it could for a search like this.  When it can it is much faster than a scanning method like grep.
Try Agent Ransack where an actual scan of the data is required: https://www.mythicsoft.com/agentransack
Well integrated with Explorer (eg launch for given directory on right click), shows Explorer-like summary of files, and lists the matching lines if you so wish, and various options such as date, regexp, etc etc.