Search code examples
windowsfindstr

Use findstr to Search keyword in the multiple sub directories


I'm looking for to find the string "please enter your datbase connection details" hidden inside the one of the .php files at a location of C:\xampp\htdocs\projects\e-pay\script\vendor

Inside vendor/ there are multiple sub directories, So my task is to find the string inside this location.

Note: Each folder has further sub directories So, my task is to find that particular string

String to find:

here

What I tried:

findstr /spin C:\xampp\htdocs\projects\e-pay\script\vendor:"please enter your datbase connection details" *.php

But Nothing showed up! can any body guide me the correct way how the string can be find in a particular location?


Solution

  • findstr /SPIN "the string to search for" C:\xampp\htdocs\projects\e-pay\script\vendor\*.php