Command line parameter /P=S

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Command line parameter /P=S

Post by *petermad »

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
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Command line parameter /P=S

Post by *Fla$her »

I fully support.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Command line parameter /P=S

Post by *ghisler(Author) »

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
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Command line parameter /P=S

Post by *petermad »

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?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Command line parameter /P=S

Post by *Fla$her »

ghisler(Author) wrote: 2022-10-12, 08:04 UTCIt would mean that the caller
Not the caller. TC himself.
Overquoting is evil! 👎
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Command line parameter /P=S

Post by *white »

Another approach would be to implement a (pseudo) environment variable ACTIVE_PANEL and INACTIVE_PANEL with possible values L and R.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Command line parameter /P=S

Post by *petermad »

Bump*

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.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply