How to Find Files by Extended Properties

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

How to Find Files by Extended Properties

Post by armsys »

For example, to find version of 8.60 per the manual:

Code: Select all

prop:fileversion:8.60        // find all items with version *8.60*
Question:
How to find folders containing 5 files or fewer with meta (extended) properties?

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

Re: How to Find Files by Extended Properties

Post by highend »

Extend my script from:
http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=14682

And let it check those files for "meta properties" as well.
rtfm "idh_quicknamesearch.htm";

To see how it's used in quicksearch()
One of my scripts helped you out? Please donate via Paypal

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: How to Find Files by Extended Properties

Post by armsys »

I don't even have a cue to decipher your succinct procedure.
How can I insert parameters into the Name field in order to find folders with 5 files or fewer?
To see the attached files, you need to log into the forum.

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

Re: How to Find Files by Extended Properties

Post by highend »

You can't do that via the gui search. It let's you search for properties but it doesn't let you use the criteria "only for folders that contain 5 or less files".
One of my scripts helped you out? Please donate via Paypal

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: How to Find Files by Extended Properties

Post by armsys »

Oh! I see. Thanks for your fast reply.
Kind of disappointment! :oops:

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to Find Files by Extended Properties

Post by admin »

I just added something:

Code: Select all

prop:#itemcount: 5
:)

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: How to Find Files by Extended Properties

Post by armsys »

Hi Don,
Thanks for your fast inclusion of a new Find Files feature.
I did test the latest beta (v15.70.0116) but the result is unpredictably random.
For example, the first folder in the screenshot contains 8,225 items but is still shown up in the result list.
I did re-test it with "Include subfolders" unchecked. The result is still faulty.
To see the attached files, you need to log into the forum.
Last edited by armsys on 12 Sep 2015 15:06, edited 1 time in total.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: How to Find Files by Extended Properties

Post by LittleBiG »

armsys wrote:Hi Don,
Thanks for your fast inclusion of a new Find Files feature.
I did test the latest it (v15.70.0116) but the result is unpredictably random.
For example, the first folder in the screenshot contains 8,225 items but is still shown up in the result list.
I did re-test it with "Include subfolders" unchecked. The result is still faulty.
Try this:

Code: Select all

prop:#itemcount: "5"
because without quotes it means *5*.
Additionally, don't forget that the "show item count with folder sizes" option is recursive, the #itemcount property not. So you checked in a wrong way. Instead, I suggest creating a new custom column with script:

Code: Select all

return property("#ItemCount", <cc_item>);

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to Find Files by Extended Properties

Post by admin »

Hm, not very intuitive. I will improve it. Next version this will work as expected:

Code: Select all

prop:#itemcount: 5

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: How to Find Files by Extended Properties

Post by armsys »

Thanks Don for your extreme perfection.

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: How to Find Files by Extended Properties

Post by armsys »

Hi LittleBiG,
Thanks for your help.
All SC you taught me works perfectly.
For example, the prop:#itemcount: "5" statement lists exactly only folders containing 5 items (files and/or folders).
However, it fails to find folders containing more or fewer than 5 items by the following statements:
prop:#itemcount: >= "5"
prop:#itemcount: <= "5"
prop:#itemcount: > "5"
prop:#itemcount: < "5"

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to Find Files by Extended Properties

Post by admin »

Wait for the next beta (soon), then you do this:

Code: Select all

prop:#itemcount: 5
prop:#itemcount: == 5  (same as above)
prop:#itemcount: != 5
prop:#itemcount: >= 5
prop:#itemcount: <= 5
prop:#itemcount: > 5
prop:#itemcount: < 5

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: How to Find Files by Extended Properties

Post by armsys »

What an impressive German efficiency!
Thanks Don. :cup: :om: :biggrin: :appl:

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to Find Files by Extended Properties

Post by admin »

Between all those beers... :beer: :beer: :beer: :)

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: How to Find Files by Extended Properties

Post by armsys »

The latest beta (v15.70.0117 - 2015-09-12 16:54) works robustly and precisely as advertised.
prop:#itemcount: 1
This feature (hunting folders with, say, 1 item) alone saves me hundred hours in removing 10K+ ghost folders!!
Thanks Don. :appl: :beer: :cup:
To see the attached files, you need to log into the forum.

Post Reply