Инструменты пользователя

Инструменты сайта


en:documentation:commandexec

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
en:documentation:commandexec [2013/02/04 15:58] loopbacken:documentation:commandexec [2020/04/05 14:41] (текущий) loopback
Строка 2: Строка 2:
  
 <code> <code>
-CommandExec [/CD[:T|S|TS]] <command/path1> [<path2>]+CommandExec <command> [<params>
 +CommandExec /CD[:{T|S|TS}] <path1> [<path2>]
 </code> </code>
  
 Execute user command em_* or set a paths in the panels. Execute user command em_* or set a paths in the panels.
  
-**Parameters**+**Parameters for executing internal command**
 |< 100% 15% >| |< 100% 15% >|
-|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.| +|command|Must be set to the name of a user command (usually prefixed with em_).
-|path2|If case of setting paths, this parameter must contain the second path.|+|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** **Switches**
 |< 100% 15% >| |< 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.|+|**[/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**
 +<code>
 +# 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"
 +</code>
  
en/documentation/commandexec.txt · Последнее изменение: 2020/04/05 14:41 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki