79662876

Date: 2025-06-12 03:23:48
Score: 2
Natty:
Report link

For a single directory:

for %a in (*.*) do find /i "string to search for"

Will do the job. Otherwise, you can do something like

dir /s /b *.txt > filelist.txt

to get a recursive list and then

for /f %a in (filelist.txt) do find /i "string to search for"

You can also use && and || to specify other things like && echo %a to echo the file name. . . will work, but might not be as fast as recursive grep.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: MuneFace