Is it possible to pass a path via command-line to open the path in the active
panel?
For example :
"c:\Program Files (x86)\TotalCommander\TOTALCMD.EXE" /O c:\Some Folder\
The above will always open c:\Some Folder in the left panel, even if the right panel is active in TC.
Thanks in advance.
Command-line: open path in active panel?
Moderators: Hacker, petermad, Stefan2, white
This should do it:
If you want to always open the folder in the INactive panel use:
Code: Select all
%COMMANDER_EXE% /O /S c:\Some Folder\
Code: Select all
%COMMANDER_EXE% /O /S /R=c:\Some Folder\
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Command-line: open path in active panel?
My small PowerShell function to open TC from present working directory just by pressing `tc` — just add to $profile, edit as necessary
Code: Select all
function start-totalCommanderhere {
$here = (Get-Location).path
kill -n TOTALCMD64 -ErrorAction Ignore
start "c:\totalcmd\TOTALCMD64.EXE" $here
}
set-alias tc start-totalCommanderhere