Page 1 of 1

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

Posted: 2018-05-26, 10:15 UTC
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.

Posted: 2018-05-28, 05:00 UTC
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?

Posted: 2018-05-28, 10:01 UTC
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.

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

Posted: 2019-03-24, 14:55 UTC
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... :)

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

Posted: 2019-03-25, 08:49 UTC
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.

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

Posted: 2019-11-30, 19:40 UTC
by petermad
Bump*

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

Posted: 2020-08-15, 19:00 UTC
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.

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

Posted: 2020-08-15, 22:20 UTC
by petermad
Duplicate of this request: https://www.ghisler.ch/board/viewtopic.php?f=14&t=49994

But Support+++ to your request of course

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

Posted: 2020-08-15, 22:21 UTC
by petermad
Bump*

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

Posted: 2020-08-16, 09:09 UTC
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

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

Posted: 2021-03-15, 10:44 UTC
by petermad
Bump*

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

Posted: 2021-04-21, 00:29 UTC
by petermad
I still hope to see this in TC 10...

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

Posted: 2022-04-14, 14:19 UTC
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 :-)

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

Posted: 2022-04-23, 12:40 UTC
by MVV
Does work for archives too?

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

Posted: 2022-04-23, 19:58 UTC
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. :)