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

green elephant

New member
Local time
2:08 AM
Messages
60
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
lenovo v570
OS
windows 7 home premium
Memory
6gb
Hard Drives
552gb
2tb (external
500gb (external
Antivirus
microsoft security
Browser
google chrome
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 Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
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 Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
lenovo v570
OS
windows 7 home premium
Memory
6gb
Hard Drives
552gb
2tb (external
500gb (external
Antivirus
microsoft security
Browser
google chrome

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Try the AND operator:
Code:
content:MSC [B][COLOR="DarkRed"]AND [/COLOR][/B]content:Mellisa
Notice that all search operators (AND, OR, NOT) must be in capital letters! (See the Part 3: Operators in tutorial http://www.sevenforums.com/tutorials/286043-search-find-more-filters-operators.html)

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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
lenovo v570
OS
windows 7 home premium
Memory
6gb
Hard Drives
552gb
2tb (external
500gb (external
Antivirus
microsoft security
Browser
google chrome
You are welcome!
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Back
Top