How search only those folders whose name matches a string?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
spinner
Posts: 85
Joined: 01 Oct 2004 13:25

How search only those folders whose name matches a string?

Post 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".

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post by highend »

Imho not with the search interface. But it can be done via scripting...
One of my scripts helped you out? Please donate via Paypal

spinner
Posts: 85
Joined: 01 Oct 2004 13:25

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

Post 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!)

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post by highend »

No, it hasn't changed.
One of my scripts helped you out? Please donate via Paypal

Borut
Posts: 1465
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

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

Post by Borut »

There is this old, unfulfilled wish of mine:

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

Some day, maybe...
Win 10 Pro 64bit

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post 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]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

jjk
Posts: 202
Joined: 10 Oct 2007 20:11
Location: Paris

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

Post by jjk »

Here http://www.xyfindit.com/index.html you can do it.
(joke)

Borut
Posts: 1465
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

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

Post 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.
Win 10 Pro 64bit

Post Reply