Page 1 of 1

How search only those folders whose name matches a string?

Posted: 07 Apr 2013 17:26
by spinner
Can XYplorer search in folders whose name matches a particular string?

For example, find files named "ELEPHANT" in all folders whose name contains the word "PHOTO".

Re: How search only those folders whose name matches a strin

Posted: 07 Apr 2013 17:41
by highend
Imho not with the search interface. But it can be done via scripting...

Re: How search only those folders whose name matches a strin

Posted: 14 Jan 2015 13:15
by spinner
I wonder if this has changed in version 14?

I can't keep up with all the new features in all the new versions! It's too exhausting. (Donald please note!)

Re: How search only those folders whose name matches a strin

Posted: 14 Jan 2015 13:57
by highend
No, it hasn't changed.

Re: How search only those folders whose name matches a strin

Posted: 14 Jan 2015 14:03
by Borut
There is this old, unfulfilled wish of mine:

http://www.xyplorer.com/xyfc/viewtopic. ... vel#p73839

Some day, maybe...

Re: How search only those folders whose name matches a strin

Posted: 14 Jan 2015 15:41
by bdeshi
Enter these in the find panel's name box to:
  • find all items with "elephant" in name that are first children of folders with "photo" in name (ie, located right inside the folder, not in subfolders):

    Code: Select all

    name:elephant AND prop:#176:photo
    note: #176 is "Folder name" in Windows 7
  • find all items with "elephant" in name that are in folders with "photo" in name, or it's subfolders:

    Code: Select all

    name:elephant AND prop:#180:photo
    note: #180 is "Path" in Windows 7
And there's also regexp.
  • Prerequisite: You have to check the "Path" options in Find panel's Name&Location tab,
    and check the "Not" beside "Directory" in the Attributes panel (which will check both)[/pre]
Enter these in the find panel's name box to:
  • find all items with "elephants" in name that are first children of folders with "photo" in name (ie, located right inside the folder, not in subfolders):

    Code: Select all

    >.*photo[^\\]*\\elephant[^\\]*$
  • find all items with "elephants" in name that are in folders with "photo" in name, or it's subfolders:

    Code: Select all

    >.*photo.*\\elephant[^\\]*$
[edit: niceties]
[edit: photos->photo]

Re: How search only those folders whose name matches a strin

Posted: 14 Jan 2015 22:06
by jjk
Here http://www.xyfindit.com/index.html you can do it.
(joke)

Re: How search only those folders whose name matches a strin

Posted: 15 Jan 2015 09:49
by Borut
SammaySarkar wrote:Enter these in the find panel's name box to:
[...]
Many thanks SammaySarkar! :appl: Perhaps not very user friendly, but still a nice way to do such things.