LOADSELECTION in the chain of command

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
KozakMak
Senior Member
Senior Member
Posts: 494
Joined: 2021-05-24, 12:39 UTC
Location: UA

LOADSELECTION in the chain of command

Post by *KozakMak »

---------------------------
Total Commander
---------------------------
File not found!

cm_DirBranch,LOADSELECTION ".\temp.txt"
---------------------------
ОК
---------------------------

What's wrong here? Or for example: LOADSELECTION ".\temp.txt",cm_Delete
OS: Win10 | TC: latest x64
User avatar
petermad
Power Member
Power Member
Posts: 16065
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: LOADSELECTION in the chain of command

Post by *petermad »

2KozakMak
You cannot use commands like LOADSELECTION in a multiple command. You have to make an em_command containing the LOADSELECTION and then chain the em_command.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
KozakMak
Senior Member
Senior Member
Posts: 494
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: LOADSELECTION in the chain of command

Post by *KozakMak »

2petermad
...but I can still use cd. What is the difference?


and em_command supports chain of command?
OS: Win10 | TC: latest x64
User avatar
petermad
Power Member
Power Member
Posts: 16065
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: LOADSELECTION in the chain of command

Post by *petermad »

KozakMak wrote: 2025-05-02, 13:22 UTC 2petermad
...but I can still use cd. What is the difference?

and em_command supports chain of command?
cd is an exception - added later.
history.txt wrote:08.03.22 Added: Button bar, Start menu: command "cd" can now be combined with internal commands, but the path must be in double quotes, e.g. cm_SrcShort,cd "c:\Windows" (32/64)

17.02.13 Added: Support for multiple internal (cm_xyz) or user-defined (em_xyz) commands on a single button or start menu command: Separate by a comma, e.g. cm_SelectAll,cm_Copy. Not all commands can be chained this way! (32/64)
Help wrote:You can also place one or more of Total Commander's internal menu commands here comma-separated. Just click on the button with the magnifying glass and choose a command from the dialog box "Choose command".
Can be combined with cd command (change directory) with the path in double quotes.
Example for multiple commands: cd "c:\windows",cm_SelectAll,cm_Copy
cm_wait x adds a delay of x milliseconds, e.g. cm_SelectAll,cm_wait 1000,cm_Copy
You can open a virtual folder with one of the following commands:
cm_OpenDesktop, cm_OpenDrives, cm_OpenControls, cm_OpenFonts, cm_OpenNetwork, cm_OpenPrinters, cm_OpenRecycled
Instead of the command name, you can also use the command number as listed in totalcmd.inc, e.g. 300 instead of cm_SrcComments.
Many internal commands support a single parameter, see "Choose command" for a list.
Additionally, you can define your own commands with prefix em_ via "Choose command" and then use them here.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply