cancel
Showing results for 
Search instead for 
Did you mean: 

<censored> windows search!

Community Veteran
Posts: 26,744
Thanks: 954
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 (£13/month)
Mobile: iD mobile (£4/month)
11 REPLIES
Community Veteran
Posts: 6,319
Thanks: 86
Fixes: 3
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.
Community Veteran
Posts: 26,744
Thanks: 954
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 (£13/month)
Mobile: iD mobile (£4/month)
Moderator
Moderator
Posts: 27,324
Thanks: 1,889
Fixes: 173
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

Customer and Forum Moderator. Windows 10 Firefox 63.0.3 (64-bit)

Superuser
Superuser
Posts: 3,490
Thanks: 1,950
Fixes: 12
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
Community Veteran
Posts: 26,744
Thanks: 954
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 (£13/month)
Mobile: iD mobile (£4/month)
IanSn
Grafter
Posts: 492
Thanks: 5
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!!!
Community Veteran
Posts: 26,744
Thanks: 954
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 (£13/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.
Community Veteran
Posts: 26,744
Thanks: 954
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 (£13/month)
Mobile: iD mobile (£4/month)
Community Veteran
Posts: 6,319
Thanks: 86
Fixes: 3
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: 486
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.