"selecting files with similar extension" question

Hi,

A couple of months ago i found following function somewhere here:

<?xml version="1.0"?> Select Extension Select All Files Matching the Current File Extension #selectwild @nodeselect @firstfileonly @nofilenamequoting Select PATTERN *{f|ext}

which allowed to select a number of extensions, for instance *.exe and *.rar, and a click on that button selected all matching files.

For some reason, it seems like it doesn´t work anymore. Only one of the selected extension types will be selected throughout the folder, while the other will be ignored. How is this possible?

A litte more explaining: let´s say, there is prg1.exe, prg2.exe, prg3.exe, arc1.rar, arc2.rar and arc3.rar in that folder, it was possible (iirc) to select only prg1.exe and arc1.rar, klick that button & all six files would have been selected. Now it´s like it selects all rars, but ignore the other exes.
Any idea someone?

That button has @firstfileonly in it so it's only going to run on the first file selected and ignore all the others.

Yeah, i saw that & removed that line, but it did not change anything. Is it possible, anyway?

This seems to fix it:

<?xml version="1.0"?> <button backcol="none" display="both" textcol="none"> <label>Select Extension</label> <tip>Select All Files Matching the Current File Extension</tip> <icon1>#selectwild</icon1> <function type="normal"> <instruction>@nodeselect</instruction> <instruction>@nofilenamequoting</instruction> <instruction>dopusrt /cmd Select PATTERN &quot;*{f|ext}&quot;</instruction> </function> </button>

[quote="nudel"]This seems to fix it:

<?xml version="1.0"?> <button backcol="none" display="both" textcol="none"> <label>Select Extension</label> <tip>Select All Files Matching the Current File Extension</tip> <icon1>#selectwild</icon1> <function type="normal"> <instruction>@nodeselect</instruction> <instruction>@nofilenamequoting</instruction> <instruction>dopusrt /cmd Select PATTERN &quot;*{f|ext}&quot;</instruction> </function> </button>[/quote]

Thank you very much, nudel!

This makes that button even more efficient. It should be included in the official function set.

In the german version i only found a button with the same icon, but a different functionality, some filter mask thing. That´s why i first didn´t find it in the customize dialogue, until i remembered it was some button from this forum & i had it in my little "collection of Dopus tricks" textfile :slight_smile:

It is.

Select SIMILAR

And the command John mentioned seems to work in making the file selction a tad bit faster... at least on my system.

It is.

Select SIMILAR

ah. But looked like it´s not in the button presets.

yep, there´s a short hesitation, not worth to be mentioned. Fast enough for me :wink:

For what it's worth, it is in the manual with a fairly explicit example command:

If every possible combination of button arguments was added to the list of preset buttons in the Customize dialog then the list of preset buttons would be very long. In particular it would be longer than the section of the manual which lists all the possible arguments and what they do. :slight_smile: Still, it's always up for discussion which particular functions are and aren't common/useful enough to include in the presets list.