How to search for files with multiple extensions

Page 1 of 2 12 LastLast

  1. Posts : 7
    Windows 10
       #1

    Possible to search for duplicate titles that have different extensions


    I have several folders with lots of ebooks in them. I have some that are pdf and some that are epub. I need to search for those that have BOTH extensions not one or the other. I can't just find them visually, because both types of files have the same title and the same thumbnail image.

    Right now, in only one folder, there are maybe 50 out of 600 that are duplicates, so browsing individually is not something I particularly want to do. Later, when adding new files, I'll be able to just search for the title, regardless of extension, and that will be done. For now, I hope to be able to search for unknown titles that have more than one extension.

    Hope this makes sense and someone has a suggestion. OH, and if it could be dumbed down that would be great. I'm fairly good getting around a computer, as long as it's nothing too fancy.
    Last edited by MacsMom; 04 Dec 2016 at 10:34. Reason: Changing title to be clearer
      My Computer


  2. Posts : 8,102
    windows 10
       #2

    Welcome to the forum. You can get free software that will find duplicate even with different names you can find files using good old DoS by typing in the folder at a CMD prompt dir cakes.* That finds all cakes with any extension * means anything so cakes*.* Would find cakes for Xmas.pdf etc
      My Computer


  3. Posts : 17,661
    Windows 10 Pro
       #3

    In File Explorer search you can search both extensions separating them with a logical operator OR. Typing following search criteria would search and show all files with extension .pdf or extension .epub (search parameter ext:XXX without a logical operator would search for files with extension XXX):

    Code:
    ext:pdf OR ext:epub

    How to search for files with multiple extensions-image.png
    (Click to enlarge.)


    Notice that logical operators (AND, OR, NOT) must be typed in uppercase.

    You can also combine logical operators. Following search in File Explorer would search and show all files with extension .pdf or extension .epub excluding those files saved this year:

    Code:
    ext:pdf OR ext:epub NOT date:this year

    Following search in File Explorer would search and show all files with extension .pdf or extension .epub with string Tom appearing in file name (Tom Sawyer.pdf, Tales of Tom Sawyer.epub and so on):

    Code:
    ext:pdf OR ext:epub AND name:Tom

    Everything in this tutorial at our sister site Seven Forums applies to File Explorer search in Windows 10: Search - Find More with Filters and Operators - Windows 7 Help Forums


    Kari
    Last edited by Kari; 04 Dec 2016 at 08:15.
      My Computer


  4. Posts : 7
    Windows 10
    Thread Starter
       #4

    Samuria said:
    Welcome to the forum. You can get free software that will find duplicate even with different names you can find files using good old DoS by typing in the folder at a CMD prompt dir cakes.* That finds all cakes with any extension * means anything so cakes*.* Would find cakes for Xmas.pdf etc
    Thanks!

    I'll try searching for the free software, but for the limited time I would need it I will leave that a bit. If I knew any part of the title, I wouldn't be asking the question. Once I've done this initial cleanup, that will certainly be the method I would use, because by then it will only be one or two added and I will KNOW which I've added.

    This problem is because I discovered the means to have epubs show with thumbnails, so I now have no clue which is pdf and which is epub.
      My Computer


  5. Posts : 7
    Windows 10
    Thread Starter
       #5

    Thanks @Kari for answering!

    Hmm, none of those work, and I'm thinking what I want is not possible. I'd already found all those suggestions, and they didn't do what I need.

    I hope to find titles that have both extensions, without knowing what the titles are. Searching for both extensions doesn't help, there are only 2 possible extensions. If I find epubs, that doesn't tell me which has a pdf duplicate. Once the initial clean up is done, this method will surely be what I will need, because when adding one or two, I will know the titles to remove the duplicates.

    Perhaps if the search results would simply highlight the targets, I could see if the file beside it has the same title. Still more work than I'd like, but more doable.
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
       #6

    My previous post answered the question you asked in your original post, about how to search files with multiple extensions.

    If you instead of that only want an alphabetical list and see if a title is present with both PDF and EPUB extensions, then simply set View preference to details, sort the folder by name, and show file extensions:

    How to search for files with multiple extensions-image.png
    (Click to enlarge.)

    Now your File Explorer will show an alphabetically sorted list. Browse the list to find duplicates.

    Kari
      My Computer


  7. Posts : 7
    Windows 10
    Thread Starter
       #7

    Kari said:
    My previous post answered the question you asked in your original post, about how to search files with multiple extensions.
    Kari
    Hmm. From initial post:
    MacsMom said:
    I have some that are pdf and some that are epub. I need to search for those that have BOTH extensions not one or the other. I can't just find them visually, because both types of files have the same title and the same thumbnail image.

    Right now, in only one folder, there are maybe 50 out of 600 that are duplicates, so browsing individually is not something I particularly want to do.
    I will browse them if necessary. I had HOPED to find an easier/quicker alternative.

    I must apologize, I thought that people would read further to see the exact nature of the question/problem. I didn't want too long of a question, and wasn't sure how to phrase my exact problem in just a few words. I'll know better next time.
      My Computer


  8. Posts : 17,661
    Windows 10 Pro
       #8

    MacsMom said:
    Hmm. From initial post:
    Your thread has a misleading title How to search for files with multiple extensions. Files in Windows can only have one extension, the part after the last dot like for instance file SomeEbook.doc.txt.pdf.epub has an extension epub because everything before the last dot is file name, not an extension. In this example case the file name is SomeEbook.doc.txt.pdf, its extension being .epub.

    Hence, because it's impossible for a file in Windows to have two extensions it was an understandable and logical misunderstanding from my side to believe you meant to ask how to search files with same file name but different extensions, an extension PDF or EPUB.

    I repeat: files in Windows 10 (or any other previous version) can only have one extension. Having a file with two different extensions is not possible.

    I am extremely sorry I tried to help you. Will not happen again, that I can promise.

    Kari
      My Computer


  9. Posts : 14,004
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #9

    A problem I've run into in a similar situation is that a Command Prompt [or DOS window] uses only the text after the last period as the extension. I've seen a lot of files that had 2 or more periods in the file name not counting the extension. And it's not helpful when Windows, by default, hides Known extensions in File Explorer.
      My Computers


  10. Posts : 14,004
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #10

    Guess Kari is a faster typist. Or maybe it's the time zone difference?
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:08.
Find Us




Windows 10 Forums