Totalcmd.inc: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
(Page rewritten)
Tag: Replaced
(Remove category: Lists (page no longer contains one))
Line 23: Line 23:
[[category:TC files]]
[[category:TC files]]
[[category:Internal commands| {{PAGENAME}}]]
[[category:Internal commands| {{PAGENAME}}]]
[[Category:Lists]]

Revision as of 14:52, 1 June 2022

The file Totalcmd.inc located in the program folder of Total Commander defines the names and short descriptions of internal commands. The file can be edited to add more commands. For example more cm_UserMenu<number> commands (to run user menu entries) or more cm_GotoDrive<drive_letter> commands (to go to certain drives). The number of these commands is rather limited by default. Be aware though, that the file gets overwritten when you install an update of Total Commander. For this reason, it's probably better to create user-defined commands instead or use other commands that accept parameters.

File format

The format of the file is as follows:

[________________<category>________________]=0
<command>=<number>;<description>
<command>=<number>;<description>
<command>=<number>;<description>
<command>=<number>;<description>
..

[________________<category>________________]=0
<command>=<number>;<description>
<command>=<number>;<description>
..

Other languages

For a non English language the category names and the descriptions of the commands are defined in the file LANGUAGE\WCMD_<language_code>.INC in the program folder of Total Commander.