See also the Wiki: https://www.ghisler.ch/wiki/index.php?title=List_of_internal_commands
Commands that accepts parameters (* = src, left or right):
Code: Select all
cm_*ByName
cm_*ByExt
cm_*BySize
cm_*ByDateTime
cm_*NegOrder
cm_*Thumbs
cm_*Comments
cm_*DirBranch
cm_*DirBranchSel
cm_*OpenDrives
cm_*ViewModeList
cm_*TabsList
cm_*Quickview
cm_*QuickInternalOnly
cm_SeparateQuickview
cm_SeparateQuickInternalOnly
cm_Wait
cm_100Percent
cm_Select
cm_UnSelect
cm_SelectAll*
cm_ClearAll*
cm_Reverse
cm_GoToFirstEntry
cm_GoToFirstFile
cm_LeftSwitchToThisCustomView
cm_RightSwitchToThisCustomView
cm_SearchForInCurdir
cm_ZoomIn
cm_ZoomOut
cm_OpenDriveByIndex
cm_Copy
cm_RenMov
cm_CreateShortcut
cm_QuickFilter
cm_DirectoryHotlist
cm_CompareDirs
cm_CompareDirsWithSubdirs
cm_List
cm_ListOnly
cm_ListInternalOnly
cm_listMulti
cm_listInternalMulti
cm_listExternal
cm_EditNewFile
cm_Edit
cm_RereadSource
cm_SyncChangeDir
cm_UnloadPlugins
cm_CloseCurrentTab
cm_CloseAllTabs
cm_PackFiles
cm_UnpackFiles
cm_SwitchLongNames
cm_SwitchHidSys
cm_SwitchHid
cm_SwitchSys
cm_Switch83Names
cm_SwitchDirSort
cm_SwitchOverlayIcons
cm_SwitchWatchDirs
cm_SwitchIgnoreList
cm_SwitchX64Redirection
cm_SwitchColorsByFileType
cm_SwitchFileTipWindows
cm_ToggleAutoViewModeSwitch
cm_FtpHiddenFiles
cm_VerticalPanels
cm_VisButtonbar
cm_VisButtonbar2
cm_VisDriveButtons
cm_VisTwoDriveButtons
cm_VisFlatDriveButtons
cm_VisDriveCombo
cm_VisDirTabs
cm_VisCurDir
cm_VisBreadCrumbs
cm_VisHistHotButtons
cm_VisTabHeader
cm_VisStatusbar
cm_VisCmdLine
cm_VisKeyButtons
cm_VisFlatInterface
cm_VisXPThemeBackground
----------------------------
CD
OPENTABS
APPENDTABS
FTPOPEN
SYNCOPEN
LOADSEARCH
OPENBAR
MULTIRENAME
OPENCUSTOMVIEW
SELECTFILES
CM_WAIT
SAVETABS
SAVETABSL
SAVETABSR
SAVETABS2
SAVETABS2L
SAVETABS2R
OPENLANGUAGEFILE
OPENBAR1
OPENBAR2
SAVESELECTION
SAVEDETAILS
LOADSELECTION
LOADLIST
ZIPFROMLIST
OPENATTRIBUTES
OPENBARMENU
15.05.16 Added: The following commands now accept a numeric parameter in the button bar or start menu: CM_WAIT
CM_SELECT CM_UNSELECT CM_REVERSE CM_GOTOFIRSTENTRY CM_GOTOFIRSTFILE CM_LEFTSWITCHTOTHISCUSTOMVIEW
CM_RIGHTSWITCHTOTHISCUSTOMVIEW (32/64)
14.06.16 Added: Commands with numerical parameters like CM_SELECT now support ? or ?number as parameter,
to get dialog box with value request (32/64)
15.06.16 Added: The following internal commands now support a drive letter (A-Z) or /=root, .=parent,
[=nethood as parameter: CM_SRCOPENDRIVES , CM_LEFTOPENDRIVES , CM_RIGHTOPENDRIVES. Use the character
code for scripting, e.g. A=65 (32/64)
15.06.16 Added: Command cm_SearchForInCurdir opens search with directory under cursor. Accepts drive letter as parameter to search on that drive. Use the character code for scripting, e.g. A=65 (32/64)
20.09.16 Added: The following internal commands now accept parameters 0 (toggle, default), 1 (true), and 2 (false),
except in main menu (* stands for LEFT, RIGHT, and SRC):
CM_VERTICALPANELS,CM_*THUMBS,CM_*BYNAME,CM_*BYEXT,CM_*BYSIZE,CM_*BYDATETIME,CM_*NEGORDER (32/64)
21.09.16 Added: For the sorting commands like CM_SRCBYNAME, add parameter 4 to sort by additional columns, e.g. CM_SRCBYSIZE 5 adds sort by size, ascending (32/64)
16.10.16 Fixed: cm_LeftViewModeList, cm_RightViewModeList and cm_SrcViewModeList now accept a view mode
number>0 or view mode name as parameter in button bar, start menu, or internal command (32/64)
29.11.19 Fixed: Support parameter 0 also for cm_LeftViewModeList and cm_RightViewModeList (32/64)
29.11.19 Added: Command line parameter support for command CM_LISTINTERNALONLY in button bar and command line (32/64)
21.10.20 Added: Support parameters 0=toggle, 1=set, 2(or -1)=reset for: cm_*Comments, cm_*DirBranch, cm_*DirBranchSel, cm_ToggleAutoViewModeSwitch, cm_SyncChangeDir, cm_SwitchLongNames, cm_SwitchHidSys, cm_SwitchHid, cm_SwitchSys, cm_Switch83Names, cm_FtpHiddenFiles, cm_SwitchDirSort, cm_SwitchOverlayIcons, cm_SwitchWatchDirs, cm_SwitchIgnoreList, cm_SwitchX64Redirection, cm_Vis* 32/64)
25.10.20 Added: New internal commands cm_ZoomIn and cm_ZoomOut, to zoom in 10% steps between 10% and 200%. Accepts percent value as parameter (32/64)
15.03.21 Added: Support parameters 0=toggle, 1=set, 2(or -1)=reset also for: cm_SrcQuickview, cm_LeftQuickview, cm_RightQuickview, cm_SrcQuickInternalOnly, cm_LeftQuickInternalOnly, cm_RightQuickInternalOnly, cm_SeparateQuickview, cm_SeparateQuickInternalOnly (32/64)
08.03.22 Added: New internal command cm_SwitchFileTipWindows to enable/disable the display of tooltips
(hints) for files. Also accepts parameters 0=toggle, 1=on, 2(or -1)=off (32/64)
08.03.22 Added: cm_UnloadPlugins now supports parameters: 0=unload all types, or sum of: 1=packer, 2=file system, 4=lister, 8=content plugins (32/64)
08.03.22 Added: cm_CloseCurrentTab now supports parameter 1=close locked tab without confirmation (32/64)
08.03.22 Added: cm_CloseAllTabs now supports parameters: 1=close unlocked tabs without confirmation, 2=close also locked tabs, with confirmation, 3=close also locked tabs, without confirmation (32/64)
08.03.21 Added: New internal commands to copy file details with header titles (field names) to the clipboard: cm_CopyHdrFileDetailsToClip, cm_CopyHdrFpFileDetailsToClip, cm_CopyHdrNetFileDetailsToClip (32/64)
09.03.22 Added: cm_CopyFileDetailsToClip, cm_CopyHdrFileDetailsToClip etc. now accept parameter to copy only specific columns (1=name+ext, 2=first custom, 4=second custom etc.) in normal, comments, and custom columns view. Parameter 1 alone copies full list with headers, for backwards
compatibility (32/64)
24.05.22 Added: The internal commands cm_list, cm_listInternalOnly, cm_listInternalMulti, cm_listOnly, cm_listMulti now support the same parameters as via command line, with switch / at the start, e.g. cm_list /T1 filename (32/64)
25.05.22 Added: New parameters 8 and 9 for all internal commands cm_srcby*, e.g. cm_srcbyname 8 saves the current sort order internally, cm_srcbyname 9 restores it (32/64)
01.06.22 Added: cm_*UserSpec commands now support 2 parameters: 8: remember current file filter (including "All Files" and "Programs"), 9: restore previously remembered file filter (32/64)
27.04.23 Added: Internal commands cm_copy and cm_renmov now support optional parameters to set copy options, target, wildcards and option to start immediately (see Help - Dialog box: Choose command) (32/64)
28.04.23 Added: Internal command cm_createshortcut now supports optional parameters (see Help - Dialog box: Choose command) (32/64)
02.05.23 Added: cm_select, cm_unselect, cm_reverse: Negative parameter toggles only current item, cursor stays in place, e.g. cm_reverse -1 (32/64)
02.05.23 Added: Internal command cm_QuickFilter: parameter 1 restores last used quick filter, like Ctrl+Shift+S (32/64)
03.05.23 Added: New internal command OPENBARMENU opens the passed .bar file as a dropdown menu. Only works when there is a top button bar (32/64)
07.05.23 Added: cm_EditNewFile with parameter 1 now creates a new file without opening the editor. Uploads new file to ftp or file system plugin if it doesn't already exist there (32/64)
09.05.23 Added: cm_listExternal now supports a file name as parameter (32/64)
14.05.23 Added: Internal commands which do not start with cm_ or em_ now support placeholders like %P%N in internal associations and user-defined hotkeys, e.g. OPENBARMENU (32/64)
19.05.23 Added: To set a hotkey for a command like SELECTFILEST, choose command SELECTFILES and then set the parameter to T <wildcards> and apply it (32/64)
19.05.23 Fixed: ZIPFROMLIST now accepts flags like -0 also in the parameters field when the command field only contains ZIPFROMLIST itself, e.g. for hotkeys (32/64)
22.05.23 Added: cm_Copy, cm_RenMov, cm_CreateShortcut: Support environment variables in parameter /T="path" (32/64)
22.05.23 Added: cm_CreateShortcut: When using parameter /T, append \*.lnk or \*.*.lnk (depending on AppendLnk value) if the user forgot to include it (32/64)
23.05.23 Added: cm_PackFiles now supports various parameters to set the checkboxes in the dialog or to start the operation directly (32/64)
24.05.23 Added: Button bar, start menu, user-defined commands: Internal commands now also support parameters in the Parameter field as long as they are not chained (no comma in command field) (32/64)
24.05.23 Added: Show error when a path not surrounded by quotes is passed to cm_Copy, cm_RenMov, cm_CreateShortcut or cm_PackFiles (32/64)
29.05.23 Added: cm_UnpackFiles now supports various parameters to set the checkboxes in the dialog or to start the operation directly (32/64)
04.06.23 Added: The command line (above buttons F5, F6 etc.) now supports commands with parameters, e.g. cm_OpenDriveByIndex 1 or CD %T%M (32/64)
06.06.23 Added: cm_OpenDriveByIndex can now accept negative numbers, where -1 would be the last drive (other buttons are ignored) (32/64)
07.06.23 Added: cm_OpenDriveByIndex can now accept negative numbers below -100, where -101 would be the last button instead of the last drive (-1) (32/64)
16.06.23 Added: cm_Copy, cm_RenMov: New flag /R determines whether relative paths in branch view should be copied with the files or not (R, R1 mean yes, R0 means no) (32/64)
30.06.23 Added: cm_packFiles: Use /T="" or /T="." to pack to source directory with default name, or /T="c:\path\." to pack to given path with default name (32/64)
05.07.23 Added: cm_Edit with parameters: Option to open the file with associated program instead of editor, either with or without using internal associations (32/64)
10.07.23 Added: cm_Edit: Support verbs "runAs" and "runAsUser" with L3, opens associated editor as administrator/other user with default verb (32/64)
09.08.23 Added: cm_Edit: Parameter /N now supports alternate syntax /N=<"file1.txt" "file2.txt" "file3.txt"> to pass multiple names to the function more easily (32/64)
17.01.24 Added: cm_CompareDirs, cm_CompareDirsWithSubdirs: New parameter 1 to only select files which do not exist on the other side (32/64)
25.01.24 Added: cm_SrcTabsList, cm_TrgTabsList, cm_LeftTabsList, cm_RightTabsList: New parameter 1 to open list of open tabs showing the tab paths instead of the tab headers (32/64)
26.01.24 Added: cm_SrcTabsList, cm_TrgTabsList, cm_LeftTabsList, cm_RightTabsList: New parameter 2 to open quick search directly, with * at start if combined with 1 (32/64)
28.01.24 Added: cm_SrcTabsList, cm_TrgTabsList, cm_LeftTabsList, cm_RightTabsList: When using parameter 1, pre-load quick search string with "*" (32/64)
01.02.24 Fixed: cm_*TabsList with parameter 1 or 3: Automatically adding "*" to quick search string only worked with quick filter enabled and internal quick search (32/64)
11.06.24 Added: Add 4 to parameter of the following commands to not save the change to wincmd.ini: cm_SwitchLongNames, cm_SwitchHidSys, cm_SwitchHid, cm_SwitchSys, cm_Switch83Names, cm_SwitchDirSort, cm_SwitchOverlayIcons, cm_SwitchIgnoreList, cm_SwitchX64Redirection, cm_SwitchFileTipWindows, cm_SwitchColorsByFileType, cm_ToggleAutoViewModeSwitch, cm_Vis* (32/64)
11.06.24 Added: OPENBAR, OPENBAR1, OPENBAR2, OPENBARMENU: New parameter * opens default bar defined for the main bar/vertical bar (32/64)
16.10.24 Added: cm_CompareDirs, cm_CompareDirsWithSubdirs: New parameter 2 to select files with different sizes plus files which do not exist on the other side (32/64)
17.10.24 Fixed: cm_CompareDirs, cm_CompareDirsWithSubdirs: Parameter 2 now also selects older files which differ in size (32/64)
15.11.24 Added: cm_DirectoryHotlist parameters are now officially supported and documented in the help (32/64)
19.11.24 Added: cm_DirectoryHotlist: Add 8 to parameter to show line numbers (also in the configuration dialog if opened from this list) (32/64)
19.11.24 Added: cm_CloseCurrentTab: new parameter 2: switch to tab to the left of the closed tab (32/64)
25.11.24 Added: cm_DirectoryHotlist: New parameters 4 and 5 to open directory hotlist on "*" button of the active/inactive file panel, respectively (32/64)
04.12.24 Added: All commands starting with cm_SelectAll or cm_ClearAll now support a numeric parameter n: if not 0, select every nth file starting from the current position, e.g. cm_SelectAllFolders 2 -> every second folder from the cursor position (32/64)
04.12.24 Fixed: Multiple internal commands with parameters didn't work from the command line, e.g. cm_GoToFirstFile 1,cm_SelectAll 2 (32/64)
Documententation in totalcmd.inc:
CD <directory>=-2;Switch to the given directory
OPENTABS <filename>=-3;Open tabs from saved .tab file (supports modifiers L and R)
APPENDTABS <filename>=-4;Append tabs to existing tabs (supports modifiers L and R)
FTPOPEN <conf. ftp server>=-5;Open stored ftp connection
SYNCOPEN <sync operation>=-6;Open stored sync operation
LOADSEARCH <stored search>=-7;Open stored search operation
OPENBAR <filename>=-8;Load button bar from file
MULTIRENAME <operation name>=-9;Open stored multi-rename operation
OPENCUSTOMVIEW <view name>=-10;Switch to custom columns view
SELECTFILES <*.ext *.ex2>=-11;Select files of specified types (supports modifiers D, B, U, L, R, T and S)
CM_WAIT <time>=-12;Wait x milliseconds
SAVETABS <filename>=-13;Save tabs to .tab file, active side
SAVETABSL <filename>=-14;Save tabs to .tab file, left side
SAVETABSR <filename>=-15;Save tabs to .tab file, right side
SAVETABS2 <filename>=-16;Save tabs to .tab file, both sides (active=first)
SAVETABS2L <filename>=-17;Save tabs to .tab file, both sides (left=first)
SAVETABS2R <filename>=-18;Save tabs to .tab file, both sides (right=first)
OPENLANGUAGEFILE <WCMD_xyz.LNG>=-19;Open specific LNG/MNU file pair from 'language' subdir
OPENBAR1 <filename>=-20;Load main button bar from file
OPENBAR2 <filename>=-21;Load vertical button bar from file
SAVESELECTION <filename>=-22;Save selection to file (supports modifiers A and W)
SAVEDETAILS <filename>=-23;Save selection with all details to file (supports modifiers A, W and H)
LOADSELECTION <filename>=-24;Load selection from file
LOADLIST <filename>=-25;Load complete list (like search result) from file (supports modifier 0 = no error dialogs)
ZIPFROMLIST <archive name> <filelist>=-26;Pack files from list (supports parameters -m, -o, -c0..-c3 and -0..-9)
OPENATTRIBUTES <parameters>=-27;Change Attributes dialog: +f (subfolders), +a/-a +r/-r +h/-h +s/-s +L/+L2 +c +dDate +tTime Plugin_settings
OPENBARMENU <filename>=-28;Load button bar as menu from file
_______________________________
Button to open the Help with these commands:
Code: Select all
TOTALCMD#BAR#DATA
hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::dlg_choosecommand.htm
%COMMANDER_PATH%\TOTALCMD.CHM
Open Help for Choose Commands (cm_commands with parameters)
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".