[Implemented] New command line parameter like /A but for directories

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:

[Implemented] New command line parameter like /A but for directories

Post by *petermad »

With the command line parameter /A we can prevent going into archive files stated on the command line, but in stead place the cursor on the archive.

Like:

Code: Select all

totalcmd.exe /0 /A c:\ c:\folder\archive.zip
will place the cursor on archive.zip in the right panel.

I could often use a similar parameter, maybe /B (/D is already used) that does the same for directories - i.e putting the cursor on the last dir in the path in stead of opening the dir.
Last edited by petermad on 2022-06-10, 23:43 UTC, edited 2 times in total.
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
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Why not the same /A? Are there cases where one will want to focus an archive but not focus a dir? Or vice versa?
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Why not the same /A? Are there cases where one will want to focus an archive but not focus a dir? Or vice versa?
Mostly when I use such a command from inside TC I would probably like to focus the dir, but if I use it to start up TC I would probably mostly want to go into the dir. I very rarely want to go into an archive in either case.
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
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New command line parameter like /A but for directories

Post by *petermad »

Bump*
2ghisler(Author)

Any chance of this getting into maybe the next version of TC? - It should be pretty easy to implement, an doestn't require translation... :)
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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New command line parameter like /A but for directories

Post by *ghisler(Author) »

It would require quite a lot of changes because it would also have to work with /O (open in already running TC), with /T (open in new tab) etc.
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: New command line parameter like /A but for directories

Post by *petermad »

Bump*
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
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

New parameter for %COMMANDER_EXE% to focus dir instead of entering it

Post by *DrShark »

Currently Total Commander, if launched with parameters as in a button:

Code: Select all

TOTALCMD#BAR#DATA
*%COMMANDER_EXE%
/L=%X%P%N /R=%X%T%M /A
%COMMANDER_PATH%\TCMADMIN.EXE
TC as Admin


-1
sets a focus on selected file, even if the path of archive file is passed by %P%N and/or %T%M.
But if directory path is passed there, TC is opening it, though I would prefer the opening of %P and %T with focus set on %N and %M in left and right panels respectively. A new parameter for *%COMMANDER_EXE%, similar to /A, which would tell TC to focus instead of trying to enter the item which is a directory, could be solution to the problem.

Use case: sometimes I need to continue the tasks started in not elevated TC in new elevated instance started from it using above button, so I need there environment as close as possible to one currently used in parent TC instance.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New parameter for %COMMANDER_EXE% to focus dir instead of entering it

Post by *petermad »

Duplicate of this request: https://www.ghisler.ch/board/viewtopic.php?f=14&t=49994

But Support+++ to your request of course
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
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New command line parameter like /A but for directories

Post by *petermad »

Bump*
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
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: New parameter for %COMMANDER_EXE% to focus dir instead of entering it

Post by *DrShark »

petermad wrote: 2020-08-15, 22:20 UTCDuplicate of this request: https://www.ghisler.ch/board/viewtopic.php?f=14&t=49994
Strange, I searched in Suggestions subforum but didn't find your topic (or somehow missed it).

2Moderators, please merge the topics.






Topics merged by mod
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New command line parameter like /A but for directories

Post by *petermad »

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

Re: New command line parameter like /A but for directories

Post by *petermad »

I still hope to see this in TC 10...
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
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New command line parameter like /A but for directories

Post by *petermad »

history.txt wrote:11.03.22 Added: New command line parameter /P without '=' behind it opens parent of passed path and places cursor on last directory, e.g. /P c:\Windows\System32 -> go to c:\Windows and place cursor on System32 (32/64)
Thanks, this fulfills my request :-)
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: [Solved] New command line parameter like /A but for directories

Post by *Fla$her »

MVV wrote: 2022-04-23, 12:40 UTCDoes work for archives too?
It turns out that way. That is, you can do without /A. :)
Overquoting is evil! 👎
Post Reply