Is ther any internal command that equals to /A

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
valuex
Junior Member
Junior Member
Posts: 25
Joined: 2014-12-25, 13:53 UTC

Is ther any internal command that equals to /A

Post by *valuex »

Here is the description of /A in Command line parameters of the help file:
/A When an archive file is passed as path, do not open it, but instead open the directory containing the archive and set the archive as the active file (place the text cursor on it).
And by using the following command, one can open TC and with the file pre-selected.

Code: Select all

 TotalCMD64.exe /O /T /A /L="FilePath" 
My question is, is there any internal command, like cm_xxx that can do the same thing?
I've tried to use LOADSELECTION as below, but it acts as TC style selection, not the style of "placing the text cursor on it".

Code: Select all

LOADSELECTION <filename>=-24;Load selection from file
valuex
Junior Member
Junior Member
Posts: 25
Joined: 2014-12-25, 13:53 UTC

Re: Is ther any internal command that equals to /A

Post by *valuex »

The background of my question comes from this post. https://ghisler.ch/board/viewtopic.php?t=80134
I trying to open TC by calling the command line paramters, so that I can do:
1. if user input is a folder ,and there is a tab that has open the folder, then activate the tab, instead of open a new tab
2. if user input is a file, and there is a tab that has open the folder where the file locates in, then activate the tab and pre-select the file.
I can NOT figure out how to do file pre-selection, so I bypass it by closing the existed tab and reopen a tab using TotalCMD64.exe /O /T /A /L="FilePath" to select the file.
It is not a good way to do this. So I am looking for a better solution here.
Fla$her
Power Member
Power Member
Posts: 2996
Joined: 2020-01-18, 04:03 UTC

Re: Is ther any internal command that equals to /A

Post by *Fla$her »

2valuex
Just use cd with \:, \|, \< or \" after the file name. This is an old trick that I discovered 13 years ago.
Also see point 3) in the suggestions.
Overquoting is evil! 👎
Post Reply