Dialog box: Configuration - Change button bar
Hint: By dragging a file on the button bar with pressed SHIFT key you can easily add buttons to the button bar. By pressing the right mouse button on the button bar, you can open a local menu which allows to change or delete the button under the mouse cursor. The Change button dialog box has exactly the same structure as the lower part of the Change button bar dialog box.
Field Description
Button bar: Behind this identifier the file name of the actual button bar is shown. Behind the file name, you can choose another button bar using the >> button. You cannot change the bar name if you are in a subbar. You can only change the name of the default bar (loaded at startup).
Below this identifier you can see the actual button bar in a raw form (only the icons).
Hint: You can use SHIFT+arrow keys to move buttons or drag them around with your mouse!
Size: Here you can choose a size for the buttons in the button bar. A size of 32 corresponds to the normal icon size.
Flat icons If checked the icons are shown without 3d effect. Now supports XP style toolbar buttons.
Small icons If checked, the icons are shown in 16x16 size, otherwise they are resized to the given size.
Add... Adds a new entry in the button bar directly BEHIND the current position.
Delete Deletes the currently selected icon.
Command: There are many possible commands which can be placed in this field:
1. You may specify the program to be run, including its search path. You can also specify fixed parameters here. Important: You must give the extensions .com and .bat, because by default Windows only finds .exe! With "Change >>" and "Insert file name" you can search for the desired program.
2. You can also place one of Total Commander's internal menu commands here. Just click on the button with the magnifying glass and choose a command from the dialog box "
Choose command".
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
3. You can make a button to change directories, by specifying cd directory name as the command. You can even choose which files to show, e.g. using the command cd directory\*.txt
4. You can also open an ftp connection, using either cd ftp://ftp.servername.com
5. With the command zipfromlist, you can create a zip file from a list of files. The command field must contain the zip file name, and the parameters field the name of the list file. The list file must contain a list of files to be packed, one file per line.
6. As a further possibility, you can insert a button to switch to another button bar. To do this, click on the button Add subbar >>. In the appearing dialog box you can choose an existing bar as a subbar or enter a name for a new bar. After this, another bar appears, which allows to change the subbar. You can make circular references (bar 1 calls bar 2 calls bar 3), but avoid to edit a bar for which you have already a window opened!
Note: If you want to have another bar at this position, you must delete the file name of the old bar before pressing the Add subbar >> button.
7. appendtabs tabfile.tab appends the
folder tabs stored in the file tabfile.tab to the current tab header. Now uses "file open" dialog box when no parameter is given.
8. opentabs tabfile.tab same, but replaces the current tabs with these new tabs.
9. SYNCOPEN saved_sync_name opens synchronize dirs with saved options. If the parameter begins with an equal sign "=", the comparison will start immediately. If the equal sign is the only parameter, the comparison will start with the current directories and last used options.
10. LOADSEARCH saved_search_name opens search function with saved search.
11. OPENBAR saved_bar loads an existing button bar, for example default.bar.
12. MULTIRENAME saved_rename_settings opens the multi-rename tool with the specified settings
13. OPENCUSTOMVIEW custom_columns_view_title switches to the first custom columns view with the specified name. The name is case-sensitive. To set the view on a specific side, append one of the suffixes L, R, S, T or B to the command (left/right/source/targer/both), e.g. OPENCUSTOMVIEWL my_view to switch the view in the left panel.
14. A value of -2 and no icon causes a manual line break in the button bar
Start path: Determines the path to be set before the program is started. If no path is given, then the path of the source window is set.
Important: If the command (given in the command box) is cd drive:\directory, then the path given in this edit box is set in the other window! This allows to set both paths (source and target) at the same time.
Parameters: Here you can specify command line parameters. Fixed parameters must be specified directly after the file name, because otherwise, in a Drag&Drop, only the file name would be given to the program.
Special parameters:
?As the first parameter causes a Dialog box to be displayed before starting the program, containing the following parameters. You can change the parameters before starting the program. You can even prevent the program's execution.
%PCauses the source path to be inserted into the command line, including a backslash (\) at the end.
%NPlaces the filename under the cursor into the command line.
%TInserts the current target path. Especially useful for packers.
%MPlaces the current filename in the target directory into the command line.
%OPlaces the current filename without extension into the command line.
%EPlaces the current extension (without leading period) into the command line.
%SInsert the names of all selected files into the command line. Names containing spaces will be surrounded by double quotes. Please note the maximum command line length of 32767 characters.
%S10Insert the names of the first 10 selected files (max.) into the command line. Allows to limit the number of file names passed to the program. You can use any other number.
%P%SInsert the names of all selected files into the command line, with full path. Names containing spaces will be surrounded by double quotes. Do NOT put quotes around %P%S yourself!
%Rlike %S, but with selected names from the target panel
Notes: %N and %M insert the long name, while %n and %m insert the DOS alias name (8.3). %P and %T insert the long path name, and %p and %t the short path name. (Same for %o, %e and %s)
By putting %P, %p, %T or %t directly in front of %S or %s, the path name is inserted with the file name for each file. Example: %P%S inserts the long path and file name for all selected files.
%%Inserts the percent-sign (just one!).
%L, %l, %F, %f, %D, %d, %UL, %UF, %WL, %WF Creates a list file in the TEMP directory with the names of the selected files and directories, and appends the name of the list file to the command line. The list is deleted automatically when the called program quits. 10 types of list files can be created:
%LLong file names including the complete path, e.g. c:\Program Files\Long name.exe
%l(lowercase L) Short file names including the complete path, e.g. C:\PROGRA~1\LONGNA~1.EXE
%FLong file names without path, e.g. Long name.exe
%fShort file names without path, e.g. LONGNA~1.EXE
%DShort file names including the complete path, but using the DOS character set for accents.
%dShort file names without path, but using the DOS character set for accents.
%UL, %UFLike %L and %F, but with an UTF-8 Unicode list file (with byte order marker)
%WL, %WFLike %L and %F, but with an UTF-16 Unicode list file (with byte order marker)
%XInterprets the following parameters after this parameter as left/right instead of source/target:
%P, %p (left path), %T, %t (right path), %N, %n (left name), %M, %m (right name), %S, %s (left selected), %R, %r (right selected)
Example: %X%P %T sends left and right path to e.g. an external sync tool
%xInterprets the following parameters after this parameter again as source/target
Example: %X%P %x%P sends left and source path to the called program
%ZAnywhere in the parameters: Allow to pass archives as path to programs for %P or %T when inside an archive
Example: %Z%P passes name of archive to external tool when TC shows contents of an archive
%AInserts the rest of the entered command line
%A1..%A9Inserts the first until the ninth parameter.
Example: Alias op points to Command: totalcmd.exe Parameter: /L=%A1 /R=%A2
-> Command line: op c:\dir1 d:\dir2 will create command: totalcmd.exe /L=c:\dir1 /R=d:\dir2
Run minimized: Program will be started as an icon
Show as menu: Only for .bar files: Show linked button bar file as a popup menu instead of switching to the new bar. Use Shift to use the other option, e.g. show bar as menu if this option isn't checked.
Run maximized: Program will be started full screen
Icon file: File which contains the icon for the button bar. For Windows programs, you can specify the name of the exe file itself. (e.g. notepad.exe). For internal commands, there are some icons available in wcmicons.dll. (By the way: Because of an internal Windows bug, you loose some bytes at every change of icon file. But after leaving Total Commander, these bytes are released. The same problem appears e.g. in program manager!)
Icon: In this list, all icons contained in the specified icon file are shown. The number of the selected icon is shown in front of the list. Just click on an icon to select it for the button bar.
Tooltip: Content of the small window which is shown when the mouse cursor is pointed on a button for more than one second.
OK Saves the changes made to the specified bar file.
Cancel Closes the dialog box without saving.
Help Opens Windows Help with this page.