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: Script to seach folders & subfolders for files containing keywords

07 Oct 2014   #1

Win 7 64 bit
Script to seach folders & subfolders for files containing keywords


I need help creating a basic script which will search C: drive, and all its subfolders for all files containing keywords in the filename. I would like the script to pull the keyword filenames from a list.

For example, I will have a text file named list.txt, in this list it will have diffrent lines, with names such as

John, smith
jane, doe
john, appleseed

in my C: drive, there are multiple folders that contain multiple PDF's files named John, smith04111983.pdf smith, john april111983.pdf etc.

I would like the script to go thru the list, and search the entire C; drive for any files containing the names on the list, and any files found placed in a folder, on my D: drive.

I have tried diffrent scripts, and have been unsuccessful in finding a script to do this. It seems really simple, but i dont have much scripting expierince. Please help.

My System SpecsSystem Spec
09 Oct 2014   #2

Windows 10 Pro X64

Why not install and use a program like Everything Search Engine?
My System SpecsSystem Spec

 Script to seach folders & subfolders for files containing keywords

Thread Tools

Similar help and support threads
Thread Forum
How to get folders to sort both subfolders and files?
When I sort my folders using "date modified," instead of ordering everything, I instead get all of the subfolders sorted, and then below that everything else, so it looks like this: FOLDER A: 10th Jan FOLDER B: 7th Jan FOLDER C: 5th Jan Randomfile.png: 12th Jan Randomfile.mp3: 11th Jan...
General Discussion
I'm having probl to seach files in my PC: Good application to suggest?
Hello I'm having problem to search files in my PC using Microsoft explorer. Is there a good apllication that I could install that could do a better job Martin :)
Folders say how many Subfolders are in a folder
I seen this picture of a persons folder in the "Content" layout and in my picture you will see where it says "Date Modified" and that's where it said the sub-folder and other information. Where would I go to change that? I've looked everywhere.
General Discussion
adding tags or keywords to .FLV files
hi in windows explorer when I right click a .wmv or .mp4 files and go to "Properties" -> "Details" I can add and edit tags/keywords. .flv, .avi and other video files DON'T have this options under the "Details" section. how can I add it ? I want to be able to add and edit tags/keywords to...
Music, Pictures & Video
Make folders/subfolders on external for image files?
Hi. Curious. Do you make folders/subfolders on the external drive for the image files to identify them from the others? Such as month/date/partition, etc..? I know macrium dates and label them as well. Dont plan on putting anything else on the extrernal..yet. Can I move the ones I've already...
Backup and Restore
New subfolders in a network shared folders not showing up
Problem: New sub-folders not showing up! So basically new folders added by uTorrent to my "Download" folder which is shared to everyone on my network don't show up when I access the folder from any computer on the network. (except the one where the files are located) I have to say they do...
Network & Sharing

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 05:14.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App