Thank you for remembering!I just forgot it.

Moderators: Hacker, petermad, Stefan2, white
Thank you for remembering!I just forgot it.
A dot in regular expressions is a meta-character and is used to search for an arbitrary character,Fla$her wrote: 2025-03-19, 21:50 UTC This is not suitable for names with multiple dots. It should be done by analogy with the following example for the current item:
that is why the dot is escaped with a \ in Fla$her's regexp: <^%O\.?[^.]*$sa16 wrote: 2025-03-25, 12:58 UTC A dot in regular expressions is a meta-character and is used to search for an arbitrary character,
Yes, it's necessary to escape metacharacters inside %O, which I usually do in scripts at the expense of another regexp. You can't do this in a regular button.
You are right name1.name2.ext will erroneously match for example name1,name2.extand other dots may be in the most base name (%O):
This option, in my opinion, is better:petermad wrote: 2025-03-20, 13:21 UTC 2sa16
The more characters you allow in the extension, the bigger risk of false markings.
Code: Select all
TOTALCMD#BAR#DATA
SELECTFILESS
"%S:~-0,255.*." "%S:~-0,255"
wcmicons.dll,39
Select all items with same base name as selected items|Hold Shift to also select folders
Marked the first 5 file and the buttons dont work, no matches found. Changed to other panel but no luck.petermad wrote: 2025-03-20, 03:16 UTC 2sniper0
Hmm, If i mark/select for example the first 5 files in any of the panels, and then use the second button here above - then the corresponding files are selected in the opposite panel.
You have to mark the files to indicate which ones you want a match for - if you only click the button, only the file under the cursor will be matched.
9.0a :/sa16 wrote: 2025-03-30, 15:39 UTC 2sniper0
What version of the program do you have? Need TC 10.00 and fresher.
As if the problem is solved by a chain of em_commands:
Code: Select all
[em_SelS_1]
cmd=SELECTFILESS
param=""%S:~-0,255.*.""
[em_SelS_2]
cmd=SELECTFILESS
param=""%S:~-0,255" | "*.*.*""
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ef
"set_ini(`%%COMMANDER_PATH%%\usercmd.ini`,em_TempParam,cmd,`SELECTFILESS`) set_ini(`%%COMMANDER_PATH%%\usercmd.ini`,em_TempParam,param,`""%%S:~-0,255.*.""`) tem(`em_TempParam`) delay(100) if(findwnd(`#32770`), send(`{ENTER}`, findwnd(`#32770`))) set_ini(`%%COMMANDER_PATH%%\usercmd.ini`,em_TempParam,cmd,`SELECTFILESS`) set_ini(`%%COMMANDER_PATH%%\usercmd.ini`,em_TempParam,param,`""%%S:~-0,255" | "*.*.*""`) tem(`em_TempParam`) delay(100) if(findwnd(`#32770`), send(`{ENTER}`, findwnd(`#32770`)))"
wcmicons.dll,39
Select all items with same base name as selected items|Hold Shift to also select folders
That solution selects the correct files if i place the cursor on DEFAULT.BAR.bak but gives me the message: "No matches found!"sa16 wrote: 2025-04-10, 05:45 UTC As if the problem is solved by a chain of em_commands:
Code: Select all
[em_SelS_1] cmd=SELECTFILESS param=""%S:~-0,255.*."" [em_SelS_2] cmd=SELECTFILESS param=""%S:~-0,255" | "*.*.*""
Code: Select all
TOTALCMD#BAR#DATA
SELECTFILESS
"%S:~-0,255.*." | "%S:~-0,255"
wcmicons.dll,39
Select all items with same base name as selected items|Hold Shift to also select folders
-1
It is better to have the correct result with an error message than the wrong one without a message.petermad wrote:That solution give selects the correct files if i place the cursor on DEFAULT.BAR.bak but gives me the message: "No matches found!"