Script to seach folders & subfolders for files containing keywords

cmrgarcia

New member
Local time
10:49 PM
Messages
1
Hello,

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
etc.

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

At a glance

Win 7 64 bit
Computer type
PC/Desktop
OS
Win 7 64 bit

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top