What happened to the /P option described in the help?
/P Skip files with non-printable characters.
It worked for me.
To further control which files are being viewed, simply iterate over the files using the for loop and add whatever logic you need. To skip .psd files as well as skip binary files:
for /f "eol=: delims=" %%F in ('dir /ad /b^|findstr /live ".psd"') do findstr /p "search" "%%F"
Use one percent instead of two percent if it is run from the command line.
source share