Exporting Start Menu to Totalcmd.inc file

What is Totalcmd.inc file?

Totalcmd.inc file is a text file reside in Total Commander installation folder, it is contain all Total Commander internal commands, these commands are grouped into many categories according to their functions e.g.[__FileOperations__], [__Configuration__], [__Network__] etc...

There is a special category by default named [__User__] under it you can specify any of TC Start Menu command, in this case the Start Menu commands will be treated as if they are TC internal commands.

Why exporting Start Menu to Totalcmd.inc file?

You will need to export Start Menu to Totalcmd.inc file if you want to:

  • Assign a hotkey for a Start Menu command different from the predefined hotkeys in Start Menu Editor. (Ctrl+Alt+F1 to F12 and Ctrl+Alt+Shift+F1 to F12).
  • Use a Start Menu command into your Total Commander Main Menu or for a toolbar button.

Export dialog box

Export TC Start Menu dialog box

  • Preview Window: here you see how the user commands category will look.

Options

  • Export command only (Recommended)
    Usually Start Menu is organized using submenus and separators, if you want to export these entries too, uncheck this option otherwise only Start Menu entries that refers to a real commands will be exported.
  • Add command code to description
    Useful if you used to add the command code to the description via Customize Totalcmd.inc dialog box.
  • Update Wincmd.ini [Shortcuts] and [Alias] sections
    If you are extensively export Start Menu to Totalcmd.inc file and then assign hotkey or alias by Total Commander option dialog box or by Hotkeys Editor for these exported commands, this option will be very helpful because when you change start menu by adding, deleting or just re-arrange the entries, these hotkeys or aliases will not work correctly. This option will update Wincmd.ini [Shortcuts] or [Alias] section to make each user command preserve its original hotkey/alias.
    This option will be enabled only if Wincmd.ini [Shortcuts] or [Alias] section has entry refer to a user command.
  • Command prefix: here you can set your won prefix. (only characters a-z, A-Z and underscore '_' are accepted).
  • Category name: here you can set your won category name for user commands.

IMPORTANT:

  • Don't change Command Prefix outside this dialog box (e.g. by notepad or any other text editor), otherwise the program will not detect user commands under Wincmd.ini [Shortcuts] or [Alias] section if they saved there in text mode.
  • Be sure that Main Menu Editor and/or Hotkeys Editor are not running while exporting to Totalcmd.inc file, because the two programs will not recognize changes happened to Totalcmd.inc file and will continue using the old Totalcmd.inc file contents and this could cause unpredicted errors.