Totalcmd.inc: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
(Page rewritten)
Tag: Replaced
(improved description of file format)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


== File format ==
== File format ==
The format of the file is as follows:
The file is a plain text file and its contents are structured as follows:


<pre>
<pre>
Line 20: Line 20:
== Other languages ==
== Other languages ==
For a non English language the category names and the descriptions of the commands are defined in the file <code>LANGUAGE\WCMD_&lt;language_code>.INC</code> in the program folder of Total Commander.
For a non English language the category names and the descriptions of the commands are defined in the file <code>LANGUAGE\WCMD_&lt;language_code>.INC</code> in the program folder of Total Commander.
== See also ==
* [[List of internal commands]]


[[category:TC files]]
[[category:TC files]]
[[category:Internal commands| {{PAGENAME}}]]
[[category:Internal commands| {{PAGENAME}}]]
[[Category:Lists]]

Latest revision as of 13:42, 2 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 file is a plain text file and its contents are structured 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.

See also