With names embedded in the titles, how to search for them?

April 12, 2019 at 16:06:20
Specs: Windows 10
With file names like, "G005 Smith_Jones.cbh", I still need to find, eg., all files with the name "Jones" in them. This is tricky presumably because of the space after the initial numbers used (eg., "G005"), as well as the underscore between the two names.
(They are names of competitors, so it is necessary to be listed like this.)
I need help refining the DOS batch file I use for that.
Here is a sample of what "sort of" works:
=============================
@echo off
echo.
echo Search system for specific files.
echo.
timeout /t 3 /nobreak
cls
echo.
dir /o:n /p *Jones*.cbh
echo.
timeout /t 4 /nobreak
echo.
REM *** DON'T use the extension descriptors (eg., ".cbh") in line below ***
findstr /i /m /s "Jones" "D:\Vault\*.*" > C:\Users\Desktop\Files_found.txt
echo.
exit
=============================
What often happens is that I get a return of tons of file names which have nothing to do with the actual names I'm searching for! So, this is useless as written above.
How do I correct it (limit it to actual spec names required)?

Thank you,
Richard


See More: With names embedded in the titles, how to search for them?

Reply ↓  Report •
Related Solutions


Ask Question