How do I search for multiple files in a particular directory

Page 2 of 2 FirstFirst 12

  1. Posts : 3,139
    Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
       #11

    cincihal said:
    I did as I Lemur suggested, I opened up My Documents and in the search box in the upper right, typed *.doc And *.txt, checking first to make sure there were actually some of those files types in that directory first. the result was "No items match your search".
    Please look at my attached example. Note in the search box, I specified *.txt OR *.docx. I did not use the AND. Here is why. AND means one file would have to satisfy both requirements. OR means it just has to satisfy one of the requirements. Does that make sense?
    Attached Thumbnails Attached Thumbnails How do I search for multiple files in a particular directory-capture.jpg  
      My Computer


  2. Posts : 5,795
    Windows 7 Ultimate x64 SP1
       #12

    The concept of these boolean searches shouldn't be foreign to anyone by now. Google uses them for web searches.
      My Computer


  3. Posts : 10
    windows 7 64bit
    Thread Starter
       #13

    That worked. Thanks!
      My Computer


  4. Posts : 3,139
    Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
       #14

    Excellent. Boolean logic can be your friend :)
      My Computer


  5. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #15

    cincihal said:
    It looks like there are differing opinions on this subject and I will have to say that the Windows 7 search utility is not as intuitive as some seem to think. I did as I Lemur suggested, I opened up My Documents and in the search box in the upper right, typed *.doc And *.txt, checking first to make sure there were actually some of those files types in that directory first. the result was "No items match your search".
    This is due to an error in search string. Boolean AND means both search criteria must be true, and because a file only has one extension, search can not find anything.

    Correct syntax is *.doc OR *.txt

    How do I search for multiple files in a particular directory-search_boolean_or.png

    This search finds all files with extension .doc OR extension .txt.

    Same search can also be done using search parameter ext:xxx, where xxx is the extension searched. Syntax for this search would be ext:doc OR ext:txt:

    How do I search for multiple files in a particular directory-search_boolean_or_2.png

    Kari

    EDIT: Too late, fellow geeks were faster...
      My Computer


  6. Posts : 3,139
    Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
       #16

    Kari said:
    EDIT: Too late, fellow geeks were faster...
    I resemble that remark
      My Computer


 
Page 2 of 2 FirstFirst 12

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

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