cm_Lister with parameters in menu / buttonbar

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

cm_Lister with parameters in menu / buttonbar

Post by *wanderer »

cm_Lister, when put in an entry in start menu, it does not accept parameters, it only automatically opens the selected file in TC's filepanel. The question is why?

I tried to create a menu entry with cm_Lister as command and "%COMMANDER_PATH%\HISTORY.TXT" as a parameter but as soon as "cm_" is entered in the command field, the parameters field get disabled. I guess there are certain commands that cannot accept parameters but it would be nice if cm_Lister could.

Thanks.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

You may use external lister for this purpose.
#5767 Personal license
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

sqa_wizard wrote:You may use external lister for this purpose.
I had forgotten about that. Thanks for the tip. It's not what i had imagined but it's a solution...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2wanderer
There is no cm_Lister command but a cm_List command.

Actually cm_List is one of the very few internal commands (if not the only one) that accepts a parameter (has to be a filename with full path).

You can use cm_List in the button bar with a parameter, but you HAVE to put the parameter in the Command field (since the Parameters field gets disabled) - so you cannot use parameters as %N or %S

So cm_List %COMMANDER_PATH%\HISTORY.TXT in the Command field works (Note - no quotes around the filename/path).

If you want to be able to use the Parameters field, then use this in the Command field: %COMMANDER_EXE% /S=L
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

petermad wrote:2wanderer
There is no cm_Lister command but a cm_List command.
Yup, my mistake. Funny though, i had tried what you suggest before posting my first message here but it didn't work. I guess i had typed cm_Lister instead of cm_List. I just tried it and it works fine. Thanks for the help.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Post Reply