Select Same Files in Dual

Hi all,
This command bellow can select the same files selected on the left lister to the right or invert, but the problem is when names have parantheses they are not reselected, do you know how to avoid this problem and prevent to other cases with different symbols ? thanks in advance !

@nofilenamequoting
dopusrt /cmd Set SOURCE=Toggle
dopusrt /cmd Select NONE
dopusrt /cmd Select PATTERN "{file$|noext}.*"
dopusrt /cmd Set SOURCE=Toggle

PS: Maybe a better solution with Advanced Selection panel is better but i never suceed to find the best parameters for same name without caring of Date&Size...

What about using the builtin command for this? You should also be able to find a menu entry under "Edit -> Select Other".

Select SOURCETODEST

Yes, thanks it's working, just for fun i really like to know how i can do it with the advanced selection because it weird that it doesn't work with setting like that:

Never knew there is such a thing as advanced selection which allows to select items by comparing source and destination items.
Learned something new, but unfortunately I cannot tell you why this won't work for you or how it should.

I assume the advanced selection does not take into account an already existing selection, which seems to be what you are playing around with.

The "Compare" criteria isn't mentioned in the documentation, so maybe this is something yet unfinished or some other secret feature you came across. o)
I assume only Leo and Jon will know what this is about and how to use it correctly.

Also consider to check out the CompareEx addin: haage-partner.de/forum/viewtopic.php?t=4956
It might be related to what you are trying, it does not take into account an existing selection, which is not necessarily a bad thing, since you can always reduce the items in your filedisplay to the ones selected beforehand (by running Select HIDESEL NOPATTERN e.g.).

Thanks TBone for all your replies and searchs, the goal for me is to learn more and especially understand the advanced search and if you're looking my screenshot you will see that it's not stupid that i used as parameters, for me it's weird why it doesn't work. It's why i would like to have feedback from an developer like Leo to tell me if i made an error or if i don't understand really the advance selection but if there is a compare parameter, i can't imagine that i 'm totaly wrong.

Anyway, thanks TBone for your interest :slight_smile:

PS: Just a note; i don't selected files before use the advanced selection.

Consider linking your DO registration to the forum, maybe that helps to get a response from the devs.

If you do not need to select items for your comparison, then again, try CompareEx. I understand your desire to use the advanced selection builtin tool, but CompareEx might be an option to get your things done until the usage of the selection tool clears up.

Well, the compare clause isn't new to v12 - it's in v11 as well.

From a quick test here on v11, it looks like it "works" but you have to ask yourself... Compare: 'what' to compare to 'what' and in what direction???

In this case, the actual SELECTION action looks intended to operate on the SOURCE file display like it always does... and what's being compared in order to figure out the selection are the file names and dates of everything in the DESTINATION file display, with no relation to any items actually selected already in either display.

Try this:

  • Open the same folder in both displays of a dual display lister. Run the advanced selection filter below... Everything in the SOURCE file display should become selected.

  • Open different empty folders in each of the two file displays... Use CTRL+V to paste some text from your clipboard into each folder - not too fast, wait a few seconds between pastes, and do not COPY any text files from folder 1 to folder 2. Run the filter below again, and again everything in the SOURCE display should become selected. Disable the 'OR' clause below so it's just selecting 'Items that are the same' and run the filter again. This time maybe NONE of the files in the SOURCE display get selected because though the filenames match between SOURCE and DEST, the timestamps are each a little different.

I'm mentioning this in case you thought you would select some files in the SOURCE, hit this filter, and then expected for matching files in the DEST display to get selected... which isn't how this select filter seems to work.

Great Thanks Steje too,
I try what you say to me but i don't understand where it's helping me, i must be stupid :smiley: Anyway, thanks again.
here i join you a picture where this filter is working, so i have some weird cases where it doesn't work but anyway, in worst i have the command "Select SOURCETODEST" that TBone have learned me.


Not really sure what you are saying. But if the left file display is the source, and the right is the destination, then it looks like the selection filter is working for you 'exactly' the way I described...

It doesn't work like the 'Select SOURCETODEST' command. It works more like the 'Select DESTTOSOURCE' command without paying any attention to the file selection (since it works agaibst ALL items in the destination lister or display, not just the selected ones).

I dont know that it 'helps' you one way or another, and I think the command tbone gave you is what you want. I was just explaining how the filter actually works since it was being questioned...