Page 1 of 1
cm_Lister with parameters in menu / buttonbar
Posted: 2012-03-04, 05:37 UTC
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.
Posted: 2012-03-04, 17:20 UTC
by sqa_wizard
You may use
external lister for this purpose.
Posted: 2012-03-04, 17:55 UTC
by wanderer
I had forgotten about that. Thanks for the tip. It's not what i had imagined but it's a solution...
Posted: 2012-03-04, 18:38 UTC
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
Posted: 2012-03-04, 18:48 UTC
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.