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 >> 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".
In the 32-bit version, 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
or: ftpopen session_name, where session_name is the name configured in the FTP connect dialog box.
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
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.
10. LOADSEARCH saved_search_name opens search function with saved search.
11. OPENBAR saved_bar loads an existing button bar, for example default.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.
%P causes the source path to be inserted into the command line, including a backslash (\) at the end.
%N places the filename under the cursor into the command line.
%T inserts the current target path. Especially useful for packers.
%M places the current filename in the target directory into the command line.
%O places the current filename without extension into the command line.
%E places the current extension (without leading period) into the command line.
%S insert 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.
%S10 insert 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%S insert 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!
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.
%L, %l, %F, %f, %D, %d create 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. 6 types of list files can be created:
%L Long 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
%F Long file names without path, e.g. Long name.exe
%f Short file names without path, e.g. LONGNA~1.EXE
%D Short file names including the complete path, but using the DOS character set for accents.
%d Short file names without path, but using the DOS character set for accents.
Only when defining alias commands:
%A Inserts the rest of the entered command line
%A1..%A9 Inserts 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
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.