en:documentation:commandexec
Это старая версия документа!
CommandExec
CommandExec [/CD[:{T|S|TS}]] <command/path1> [<path2>]
Execute user command em_* or set a paths in the panels.
Parameters
command/path1 | In case of executing TC's internal command, this parameter must be set to the name of a user command (usually prefixed with em_). If case of setting paths, this parameter must contain the first path. |
path2 | If case of setting paths, this parameter must contain the second path. |
Switches
[/CD] | Setting this switch allow to set paths in the Total Commander panels. First and optional second parameters — paths for setting in panels. After parameter can be optional flags how to set paths: T — open in new tab, S — make first path as source, second as target, else left and right panels accordingly, ST — combination of parameters. |
Examples
# opens the configuration dialog CommandExec cm_Config # execute the user command "em_UserCommand1" CommandExec em_UserCommand1 # opens "C:\Windows" path in the left panel CommandExec /CD "C:\Windows" # opens "C:\Windows" path in the right panel (note first parameter is empty) CommandExec /CD "" "C:\Windows" # opens "C:\Windows" path in new tab in the left panel CommandExec /CD:T "C:\Windows" # opens "C:\Windows" path in the source panel, "D:\Test" in the target panel CommandExec /CD:S "C:\Windows" "D:\Test" # opens "C:\Windows" path in the new tab of source panel, # "D:\Test" in the new tab of target panel CommandExec /CD:ST "C:\Windows" "D:\Test"
en/documentation/commandexec.1561037903.txt.gz · Последнее изменение: 2019/06/20 16:38 — 127.0.0.1