Open user defined path with wincmd.ini

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
quiddi
Junior Member
Junior Member
Posts: 3
Joined: 2020-05-18, 06:15 UTC

Open user defined path with wincmd.ini

Post by *quiddi »

Hi,

I want to open with a shortcut a self defined path. To open my Desktop I normally add to the wincmd.ini-File

Code: Select all

ALT+D=cm_OpenDesktop
With this it is possible to open the Desktop with the shortcut Alt + D. How has the line has to look like if I want to open

Code: Select all

c:\self-defined-folder\
Thanks.
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Open user defined path with wincmd.ini

Post by *nsp »

You can define a user command in usercmd.ini using cm_CommandBrowser using new em_self_defined_path :

Code: Select all

command:CD
parameters: c:\self-defined-folder\
You can reuse it in alias, button, hotkey ...
to have same behavior as Alt+D, just assign a hotkey as you did with cm_OpenDesktop using em_self_defined_path.
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Open user defined path with wincmd.ini

Post by *Stefan2 »

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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Post Reply