Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to search for text in a notepad document (please read)

31 Oct 2013   #1
green elephant

windows 7 home premium
 
 
How to search for text in a notepad document (please read)

I have around 50-60 folders that all contain notepad documents with text inside of them. Lets say one of the folders contains a notepad document with the text "popcorn". How might I find that particular folder or notepad document (either one. doesn't matter) that contains "popcorn" withjout manually going through every folder/document to find the one with "popcorn"?

This should help you understand if the above wasn't understandable:

Each folder goes like this:
10-12-13 (the date the folder was created)>10-12-13 Pictures (sub folder) and the notepad document. To clarify, the main folder 10-12-13 contains a sub folder and the notepad document. Now we are back to "popcorn". Say i want to find a folder/notepad document with the text "popcorn" in it. How would i do that without manually going through every folder and notepad document?


My System SpecsSystem Spec
.
31 Oct 2013   #2
Kari

Microsoft Community Contributor Award Recipient

 

Hi, welcome to the Seven Forums.

Here's how:
  • Let's say you have the main folder named 2013, containing subfolders for each month (JAN through DEC), and these subfolders in their turn subfolders for each day
  • Open Windows Explorer showing the content of the main folder 2013
  • Windows Search includes now the folder 2013 and all its subfolders (Search always searches the folder open in Explorer and everything underneath it)
  • Type your search term to Search (top right), telling the Search it should search for file content:
    Code:
    content:popcorn
  • The search filter content:search term tells the Search to search the content of all files in all files in current folder and all its subfolders
Read more:
Kari
My System SpecsSystem Spec
31 Oct 2013   #3
MilesAhead

Windows 7 32 bit
 
 

If not command line phobic an alternative is to search using a variant of the Linux 'fgrep' command. It has a lot of versatility as to file pattern match, print lines containing or not containing search pattern etc..

If you search freeware sites you can find both command line and Gui implementations and variants of it.
My System SpecsSystem Spec
.

31 Oct 2013   #4
green elephant

windows 7 home premium
 
 

Quote   Quote: Originally Posted by Kari View Post
Hi, welcome to the Seven Forums.

Here's how:
  • Let's say you have the main folder named 2013, containing subfolders for each month (JAN through DEC), and these subfolders in their turn subfolders for each day
  • Open Windows Explorer showing the content of the main folder 2013
  • Windows Search includes now the folder 2013 and all its subfolders (Search always searches the folder open in Explorer and everything underneath it)
  • Type your search term to Search (top right), telling the Search it should search for file content:
    Code:
    content:popcorn
  • The search filter content:search term tells the Search to search the content of all files in all files in current folder and all its subfolders
Read more:
Kari
Thank you for the response.
Say one text document includes the text "MSC MELLISA". I type "content:MSC MELLISA" (it comes up with nothing) and I know it IS capitalized in the text document. I then tried "content:MSCMELLISA" still no luck. I then tried plain MSC, and that worked but i have multiple text documents with MSC in it..
My System SpecsSystem Spec
31 Oct 2013   #5
Kari

Microsoft Community Contributor Award Recipient

 

Try the AND operator:
Code:
content:MSC AND content:Mellisa
Notice that all search operators (AND, OR, NOT) must be in capital letters! (See the Part 3: Operators in tutorial Search - Find More with Filters and Operators)

Kari
My System SpecsSystem Spec
31 Oct 2013   #6
green elephant

windows 7 home premium
 
 

Quote   Quote: Originally Posted by Kari View Post
Try the AND operator:
Code:
content:MSC AND content:Mellisa
Notice that all search operators (AND, OR, NOT) must be in capital letters! (See the Part 3: Operators in tutorial Search - Find More with Filters and Operators)

Kari
Well i put in plain content:mellisa and no luck... guess i spelled it wrong in the text document itself or something.. because this code works for other keywords.
Thanks Kari
My System SpecsSystem Spec
31 Oct 2013   #7
Kari

Microsoft Community Contributor Award Recipient

 

You are welcome!
My System SpecsSystem Spec
Reply

 How to search for text in a notepad document (please read)




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Can't Copy Text From pdf Document!
I have a pdf document that I downloaded from the internet. I just want to copy the text of a paragraph or two to cite as a quotation in another work--fair use and the source is duly noted. However I am unable to highlight any of the text in order to copy it to the clipboard. I have downloaded the...
General Discussion
Notepad Icon change to text
How do I get back my existing Notepad icon which was change to text icon. :oDid the virus change it?
General Discussion
text file not opening through notepad
hi friends, there is a big problem with me,i had installed ultraedit in my computer which i uninstalled it after the trial period got over as i didn't wanted to continue more.but after that the text files are not being read by notepad directly.after double clicking,it is showing that the...
Software
Text File does not open with Notepad
Hi All, I installed a software called ultraEdit on my windows 7 machine, but then after uninstalling it my text documents no longer use Notepad as the default program to open. I tried changing the default program that text documents open with, but it is not letting me. Could anyone give me some...
Software
How to Create a New Text Document ?
Hello everyone and thanks for your time. I have been using Windows 7 for a long time and have gotten used to all the keys, mouse movements etc for opening stuff. Recently I bought a new Laptop with same version of Windows installed (Ultimate). However, when I right click the Desktop, the context...
General Discussion
Notepad: Where did my text go?
Hello, I have a Notepad question. When I use Notepad, how do I get back to my original work without saving that work, when I call up and begin another notepad? On my older XP, the typed text would just become cradled in the traybar. I would then call up a new notepad and begin another item and...
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App