Now we have the command line parameters /P=L and /P=R to set the active panel to left or right.
It could be nice with a parameter /P=S to set the active panel to the source side in case the command is run from TC
Command line parameter /P=S
Moderators: Hacker, petermad, Stefan2, white
Command line parameter /P=S
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:
Re: Command line parameter /P=S
Command line parameters are passed to the launched program. When you pass /P=S to the launched program, it will not know what was the source in the previous instance. It would mean that the caller would have to parse each command in various places where you can launch programs, and replace /P=S with /P=L or /P=R, respectively.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Command line parameter /P=S
Hmm, how is the parameter /O treated? The current TC must read that before executing the command line, in order to know not to start a new instance.
So couldn't TC read /P=S and replace it with S with L or R before launching the command?
So couldn't TC read /P=S and replace it with S with L or R before launching the command?
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
Re: Command line parameter /P=S
Another approach would be to implement a (pseudo) environment variable ACTIVE_PANEL and INACTIVE_PANEL with possible values L and R.
Re: Command line parameter /P=S
Bump*
It should be feasible when used from TC, and could just be ignored when used in a .lnk or .bat file.
It should be feasible when used from TC, and could just be ignored when used in a .lnk or .bat file.
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