Although Windows defines the file type on the basis of the file extension, some types cover multiple extensions (e.g., "JPEG Image" covers .JPG
and .JPEG
), and others use extensions that are substrings of other extensions for unrelated types (e.g., "Markdown files" are .md
, which is a substring of .mdb
(an Access database) and .mdi
(Microsoft Document Image file). If I want to search for "JPEG Image", or "Markdown file", and get only the required file types... how do I do it?
- Explorer, batch, or PowerShell solutions are acceptable.
- The ideal solution will work for both Windows 7 and Windows 10, but separate solutions for Windows 7 and Windows 10 are also acceptable.
- I would prefer not having to analyze and use explicit file extensions in the search.
.JPEG
), why do you not wish to search by the extension?.JPEG
misses the "JPEG Images" that are.JPG
), and in other cases will get too many files (e.g.,.md
in the Explorer search box will get not only "Markdown files", but "Access database files" (.mdb
))..JPG
and.JPEG
, since they are both technically.JPEG
files. You can search using explorer by typingtype:=.JPEG
in the search box and it should find all .JPEG files, regardless of their extensiontype:=.JPEG
omits.JPG
.type:.jpeg
a try. I just tested it now and it returned both.jpg
and.jpeg
files.