[pb4] OPENBAR from cmdline doesn't work.
Moderators: Hacker, petermad, Stefan2, white
[pb4] OPENBAR from cmdline doesn't work.
Subj.
If i try to run new OPENBAR cmd from TC commandline, it doesn't work (file not found message appear). But it work, when i try to run it from menu or toolbar button.
If i try to run new OPENBAR cmd from TC commandline, it doesn't work (file not found message appear). But it work, when i try to run it from menu or toolbar button.
Exept for CD and cm_list it is the same thing with the other commands that takes parameters: OPENTABS, APPENDTABS, FTPOPEN, LOADSEARCH and SYNCOPEN.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
OPENBAR is not supported on the command line, just like the other commands with parameters. Currently it's not planned to change that.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Wouldn't it be great if %A would be expanded for internal command with parameters as suggested here?
http://www.ghisler.ch/board/viewtopic.php?t=12184
http://www.ghisler.ch/board/viewtopic.php?t=12184
... Not supported but can be done !!!!!
ghisler(Author) wrote:OPENBAR is not supported on the command line, just like the other commands with parameters. Currently it's not planned to change that.


But...........

If you do a user command "em_LoadBarThatMrGhislerDoNotWantIUseFromTheCommandLine" or a shorter one like "em_LoadBar"
command: OPENBAR
parameter: %A
then, you can tip in the command line :
em_LoadBar c:\totalcmd\profiles\bars\MMedia.bar
And then ... the bar show up ! alleluia

( Please Mr Ghisler can you unify command as if it accepts parameter, it accepts in the same way :




This would be so kind !!!!!
2nsp
Wow - I didn't know that! didn't find anything in the history. It seems %A must be specified explicitely. It doesn't work if the parameters field is just empty.
is even simpler then typing openbar <my bar>.
Wow - I didn't know that! didn't find anything in the history. It seems %A must be specified explicitely. It doesn't work if the parameters field is just empty.
What's so dirty about these two? User commands are used in all cases. Just typingArrow From the command line. (Almost done with dirty trick)
Arrow Externally using windows send-message ! (instead of populating the command line !, very dirty trick)
Code: Select all
cb <my bar>
You are right ! I discover it just because i never let parameter empty if i want to use it via cmdline !Lefteous wrote: It doesn't work if the parameters field is just empty.
Personally i enjoy it and, i can most of the time do my stuff working with Powerpro, some prefers AHK ...Lefteous wrote: What's so dirty about these two?

1) You have to use a (additional) usercmd to make the std cmd work as you want !
This is a small trick that make TC not so user friendly to new/occasional users.
2) I do not understand why some command works from the menu or the cmd line and not using external automation tools (sendmessage) ...
3) we have wonderful %f %F %L ..... pseudo variable not available in cmdline and !
So i create temporary em_cmd in usercmd.ini in order to launch them externally ! ( It works like a charm ! )
4) cm_list do not accept parameters from cmd line ... so you call the external lister.exe .....
These are tricks, i use and share with people i convinced to use TC.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Nice, you found a way to do it which wasn't even planned. 

Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com