You can redirect the output of the dir command into findstr
to filter the lines 'Thumbs.db'. The flag /V
displays non-matching lines only, the flag /I
makes the search case-insensitive. The full command would be:
dir /A:-D /B "x:\...\" | findstr /V /I "^Thumbs.db$"