Hi
quiddi, welcome to our community.
-- first create your own command (User Defined Command in usercmd.ini) For this issue with the TC internal command 'CD'
-- next use the name of your created UDC for to assign an keyboard shortcut to.
- - -
Create your own user commands - User-Defined Command (UDC) (em_command in usercmd.ini)
To create own user commands; use this way via dialog:
* open "Configuration > Options > Misc."
* choose any key (just temporarily for creating the command, or chose one to keep)
* click on magnifying glass icon, the 'cm_commandbrowser' will be launched
-or-
* just type 'cm_commandbrowser' into the TC command line box
-next-
* choose usercmd.ini at bottom of left listview
(the usercmd.ini file will be created if not existent yet, if you add a new command using new)
* click at [New]
* enter the wanted name for your new user defined command,
--- like for example 'em_MyCommandName' (the "em_" -part is mandatory)
* click on OK
* type in your own command and parameter details,
or select a command on right side via the 'magnifying glass' symbol
Take care on the right quotation
EXAMPLE for command and parameter:
--- Command =
<Your script or application with full or relative path (use %Commander_Path% for the TC-folder).
Or a TC internal CM_commands or user defined EM_commands "UDC" (see "Magnifying glass" symbol)>
--- Parameters =
<Parameters for your application, if need. Or TCs parameter for your script (press F1 key for help)>
--- Start path =
<If need. Or leave empty (recommended), as TC use current path as "Start path".>
--- Icon file =
<e.g.: WCMICONS.DLL or path to your application exe>
--- Tooltip =
<a hint for you, so you know what this button will do. Use pipe-symbol '|' to insert line breaks.>
--- Enable "[_]Run minimized" or "[_]Run maximized", if wanted.
/EXAMPLE
* click on OK twice
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
For your issue:
Command = CD c:\self-defined-folder\
Parameters =
Start path = leave empty
Icon file = WCMICONS.DLL
Tooltip = your describtion
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Add shortcut key to em_ or cm_ commands
Utilize "Configuration > Options > Misc." to assign the hot key.
* open "Configuration > Options > Misc."
* by "shortcuts" choose a free key combo
* click on the magnifying glass
* type em_ (or cm_) and choose the wanted command by double clicking on it
* close the options dialog with [OK]
* click on OK
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FAQs: How to create an button / Icons / Variables / Quoting
viewtopic.php?p=344803#p344803
FAQs: Button-code: How-to Copy Share Paste a button ('TOTALCMD#BAR#DATA')
viewtopic.php?p=335879#p335879
FAQs: Button - How to execute more than one command at once
viewtopic.php?p=287794#p287794
FAQs: User-Defined Command (UDC) (usercmd.ini) em_command
- Create own commands to use in button or to execute them by an keyboard shortcut.
viewtopic.php?p=344777#p344777
FAQs: TCs' internal commands - how-to find and use them
viewtopic.php?p=289931#p289931
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -