Windows command line search for exact extension with dir
you can try this
dir /s /b *.txt | findstr /v .txt.
or
dir /s /b *.txt | findstr /e .txt
or
dir /b *.txt | findstr .txt$
I can't figure out why it behaves like this, but this works: dir /b /s .txt | findstr /e .txt
. Ugly but works.