Menu

How to exclude certain (sub)directories or file patterns from search?

Thomas
2018-02-02
2018-02-05
  • Thomas

    Thomas - 2018-02-02

    Assume I want to search in the whole partition D:\ for a pattern foobar

    However I want to exclude all subdirectories which contain "temp" or "tmp"
    and excldue all files which contain ".log"

    How can I tell this to Locate32?

    I did not found an "exclude dirs" and no "exclude files" entry fields

     

    Last edit: Thomas 2018-02-05
  • jmj

    jmj - 2018-02-03

    This is possible as such. Howevre, if you want permanently exclude those files, you exclude those files from the database and those will not appear. There are those fields in settings of each database (behind Advanced button).

     
  • Thomas

    Thomas - 2018-02-05

    Hmm, I don't want to exclude them permanently - just for a the current single search.

    You said: "This is possible as such".

    HOW is this possible??
    Again: I miss an entry field "exclude dirs"

     
  • jmj

    jmj - 2018-02-05

    Sorry, I meant to say that it's not possible as such.

    Alternative might be using logical operations + and -. You should have "Allow logical operations (...)" option enabled in Advanced setting. Then you can exclude log files by adding "Name:" field: -#.log (Replace # with asterisk, this forum does not allow asterisk properly)
    Directies can be excluded similarly, e.g. typing -D:\ to "Look In:"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.