====== CommandExec ======
CommandExec []
CommandExec /CD[:{T|S|TS}] []
Execute user command em_* or set a paths in the panels.
**Parameters for executing internal command**
|< 100% 15% >|
|command|Must be set to the name of a user command (usually prefixed with em_).|
|params|Must contain the parameters of em-command.|
**Parameters for setting paths**
|< 100% 15% >|
|path1|This parameter must contain the first path.|
|path2|This parameter must contain the second path.|
**Switches**
|< 100% 15% >|
|**[/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"