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.