Repeated item in FindFiles:Named

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Repeated item in FindFiles:Named

Post by klownboy »

I'm updating my ListManagementHouseCleaning script and I've noticed that when I look at my XYplorer ini file section for [Named] which is FindFiles: Named, it has a repeat for first item like so:

Code: Select all

[Named]
Count=4
Named0="* /ed  //find all empty folders"
Named1="* /ed  //find all empty folders"
Named2="* /ef  //find all empty files"
Named3="* *  //Find files and folders with spaces"
Named4="-----> mru"
Whereas looking at the List Management dialog for "Find Files: Named" it looks like so...

Code: Select all

* /ed  //find all empty folders
* /ef  //find all empty files
* *  //Find files and folders with spaces
-----> mru
Is there a reason for the repeat occurring in XYplorer.ini. If I manually edit the repeat out along with renumbering in XY's ini file, the first item will be missing when viewed in List Management. Manual editing doesn't seem to get rid of it or starting clean and it doesn't seen to happen on other mru lists. It will be that way even after a save and restart as well. It seems to be messing up my current method of clearing out all but the sticky section mrus. Thanks for any help.
Ken

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Repeated item in FindFiles:Named

Post by klownboy »

Hi Don, what I'm really trying to figure out is what are the rules for writing to this section in XYplorer.ini (i.e., is the same value for "Named0=" and "Named1" possible)? Evidently it is under certain cases. Is it possibly the result of having the "-----> mru" line or when the values under the mru line are deleted in List management? My script only reads (no writing) the ini file), but I suppose I have to understand what is going on. I assume as well that the "-----> mru" line is not counted in the count value even though it has a Named number? Thanks.

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

[Solved] Repeated item in FindFiles:Named

Post by klownboy »

As a follow-up, it appears this situation in XYplorer.ini file is the same with [LookIn] section and probably others as well in that the "LookIn0=" and "LookIn1=" values are the same same regardless of whether there is a "----->mru" line or not or whether there are any items after the mru line. From running some test it appears the highlighted value (or default) when find files location is brought up is the last used location becomes the "LookIn0=" value and is repeated for the dropdown list which displays when you hit the down arrow. So I'm all set. I was just curious. I put in a dedupe along with trim and unquote in SC formatlist to take care of it for use in List Management. Thanks.

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

Re: Repeated item in FindFiles:Named

Post by admin »

The value is not always the same. The 0-value is the one currently visible in the text box, the 1-value is the one on top of the MRU list.

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Repeated item in FindFiles:Named

Post by klownboy »

Ok, I see it now. I just fiddled with the look in dropdown and see that the highlighted location will always be in the dropdown (i.e., LookIn1 thru whatever), but the highlighted one (LookIn0) is not necessarily going to be the first in the dropdown. Thanks, good to know...not important for most users, but since I was writing a script that would using getsectionlist it was important to know why. Thanks again.

Post Reply